From 84a1c79fc2df68f9df5b87c1293b2f1c828af472 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 15 Feb 2011 11:12:57 +0000 Subject: [PATCH] 4647: Fix ListModel so that it uses the correct sort column svn: r16620 --- src/ListModel.py | 3 +-- src/gui/viewmanager.py | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ListModel.py b/src/ListModel.py index 5a6006994..e27855031 100644 --- a/src/ListModel.py +++ b/src/ListModel.py @@ -211,8 +211,7 @@ class ListModel(object): column.set_clickable(False) else: column.set_clickable(True) - #column.set_sort_column_id(name[1]) - column.set_sort_column_id(cnum) + column.set_sort_column_id(name[1]) column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED) column.set_fixed_width(name[2]) diff --git a/src/gui/viewmanager.py b/src/gui/viewmanager.py index 6d075f5b6..86d7b7f6a 100644 --- a/src/gui/viewmanager.py +++ b/src/gui/viewmanager.py @@ -441,16 +441,15 @@ class ViewManager(CLIManager): self.list = ListModel(glade.get_object("list"), [ # name, click?, width, toggle {"name": _('Select'), - "sort_id": NOSORT, "width": 60, "type": TOGGLE, "visible_col": 6, "editable": True}, # 0 selected? (_('Type'), 1, 180), # 1 new gramplet - (_('Name'), 1, 200), # 2 name (version) - (_('Description'), 1, 200), # 3 description - ('', 1, 0), # 4 url - ('', 1, 0), # 5 id + (_('Name'), 2, 200), # 2 name (version) + (_('Description'), 3, 200), # 3 description + ('', NOSORT, 0), # 4 url + ('', NOSORT, 0), # 5 id {"name": '', "type": TOGGLE}, # 6 visible? bool ], list_mode="tree") pos = None