Remember last sort column, handle photo descriptions better

svn: r554
This commit is contained in:
Don Allingham
2001-11-06 15:50:42 +00:00
parent ca7c1d5fe8
commit e9f302f13d
9 changed files with 255 additions and 180 deletions

View File

@@ -793,7 +793,21 @@ def get_config_color(name,defval):
return defval
else:
return (r,g,b)
def get_sort_cols(name,col,dir):
c = get_int("/gramps/sort/%s_col" % name)
if c == None:
c = col
d = get_int("/gramps/sort/%s_dir" % name)
if d == None:
d = dir
return (c,d)
def save_sort_cols(name,col,dir):
set_int("/gramps/sort/%s_col" % name, col)
set_int("/gramps/sort/%s_dir" % name, dir)
sync()
#-------------------------------------------------------------------------
#
#