diff --git a/ChangeLog b/ChangeLog index 9a24868dc..6a40dc542 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-06-16 Don Allingham + * src/DbManager.py: add user sorting to manager lists + 2007-06-16 Alex Roitman * src/GrampsDbUtils/_ReadXML.py (start_url): Correctly parse url type. diff --git a/src/DbManager.py b/src/DbManager.py index 1a39e8225..cfbb9d391 100644 --- a/src/DbManager.py +++ b/src/DbManager.py @@ -76,6 +76,7 @@ NAME_COL = 0 PATH_COL = 1 FILE_COL = 2 DATE_COL = 3 +DSORT_COL = 4 OPEN_COL = 5 STOCK_COL = 6 @@ -207,11 +208,13 @@ class DbManager: render.connect('edited', self.__change_name) self.column = gtk.TreeViewColumn(_('Family tree name'), render, text=NAME_COL) + self.column.set_sort_column_id(NAME_COL) self.dblist.append_column(self.column) # build the last modified cocolumn render = gtk.CellRendererText() column = gtk.TreeViewColumn(_('Last modified'), render, text=DATE_COL) + column.set_sort_column_id(DSORT_COL) self.dblist.append_column(column) # set the rules hit