From 7fc698dcfbbf7613cbcb51a4cea7df618908ed51 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 10 Nov 2002 03:34:10 +0000 Subject: [PATCH] Fixed sorting on people tabs svn: r1176 --- src/ListModel.py | 11 ++++++----- src/gramps.glade | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ListModel.py b/src/ListModel.py index 34dd66896..d3b106665 100644 --- a/src/ListModel.py +++ b/src/ListModel.py @@ -42,13 +42,14 @@ class ListModel: column.set_resizable(gtk.TRUE) cnum = cnum + 1 tree.append_column(column) - if cnum == 1: - column.clicked() - - cnum = 0 + + num = 0 for name in dlist: - column = tree.get_column(cnum) + column = tree.get_column(num) column.set_sort_column_id(name[1]) + if num == 0: + column.clicked() + num = num + 1 if select_func: self.selection.connect('changed',select_func) diff --git a/src/gramps.glade b/src/gramps.glade index 38994a2c6..282debb81 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -1117,7 +1117,7 @@ True GTK_POS_BOTTOM False - 2 + 4 2 False