4647: Fix ListModel so that it uses the correct sort column
svn: r16620
This commit is contained in:
parent
370545fda9
commit
84a1c79fc2
@ -211,8 +211,7 @@ class ListModel(object):
|
|||||||
column.set_clickable(False)
|
column.set_clickable(False)
|
||||||
else:
|
else:
|
||||||
column.set_clickable(True)
|
column.set_clickable(True)
|
||||||
#column.set_sort_column_id(name[1])
|
column.set_sort_column_id(name[1])
|
||||||
column.set_sort_column_id(cnum)
|
|
||||||
|
|
||||||
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
column.set_fixed_width(name[2])
|
column.set_fixed_width(name[2])
|
||||||
|
@ -441,16 +441,15 @@ class ViewManager(CLIManager):
|
|||||||
self.list = ListModel(glade.get_object("list"), [
|
self.list = ListModel(glade.get_object("list"), [
|
||||||
# name, click?, width, toggle
|
# name, click?, width, toggle
|
||||||
{"name": _('Select'),
|
{"name": _('Select'),
|
||||||
"sort_id": NOSORT,
|
|
||||||
"width": 60,
|
"width": 60,
|
||||||
"type": TOGGLE,
|
"type": TOGGLE,
|
||||||
"visible_col": 6,
|
"visible_col": 6,
|
||||||
"editable": True}, # 0 selected?
|
"editable": True}, # 0 selected?
|
||||||
(_('Type'), 1, 180), # 1 new gramplet
|
(_('Type'), 1, 180), # 1 new gramplet
|
||||||
(_('Name'), 1, 200), # 2 name (version)
|
(_('Name'), 2, 200), # 2 name (version)
|
||||||
(_('Description'), 1, 200), # 3 description
|
(_('Description'), 3, 200), # 3 description
|
||||||
('', 1, 0), # 4 url
|
('', NOSORT, 0), # 4 url
|
||||||
('', 1, 0), # 5 id
|
('', NOSORT, 0), # 5 id
|
||||||
{"name": '', "type": TOGGLE}, # 6 visible? bool
|
{"name": '', "type": TOGGLE}, # 6 visible? bool
|
||||||
], list_mode="tree")
|
], list_mode="tree")
|
||||||
pos = None
|
pos = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user