Fixed sorting on people tabs

svn: r1176
This commit is contained in:
Don Allingham 2002-11-10 03:34:10 +00:00
parent 853ec44b39
commit 0ef767fd43
2 changed files with 7 additions and 6 deletions

View File

@ -42,13 +42,14 @@ class ListModel:
column.set_resizable(gtk.TRUE) column.set_resizable(gtk.TRUE)
cnum = cnum + 1 cnum = cnum + 1
tree.append_column(column) tree.append_column(column)
if cnum == 1:
column.clicked() num = 0
cnum = 0
for name in dlist: for name in dlist:
column = tree.get_column(cnum) column = tree.get_column(num)
column.set_sort_column_id(name[1]) column.set_sort_column_id(name[1])
if num == 0:
column.clicked()
num = num + 1
if select_func: if select_func:
self.selection.connect('changed',select_func) self.selection.connect('changed',select_func)

View File

@ -1117,7 +1117,7 @@
<property name="show_border">True</property> <property name="show_border">True</property>
<property name="tab_pos">GTK_POS_BOTTOM</property> <property name="tab_pos">GTK_POS_BOTTOM</property>
<property name="scrollable">False</property> <property name="scrollable">False</property>
<property name="tab_hborder">2</property> <property name="tab_hborder">4</property>
<property name="tab_vborder">2</property> <property name="tab_vborder">2</property>
<property name="enable_popup">False</property> <property name="enable_popup">False</property>
<signal name="switch_page" handler="on_alpha_switch_page" last_modification_time="Sat, 09 Nov 2002 22:11:07 GMT"/> <signal name="switch_page" handler="on_alpha_switch_page" last_modification_time="Sat, 09 Nov 2002 22:11:07 GMT"/>