From da7b26c74114c1b12f0bb273789c2c9a62a12612 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 21 Oct 2003 03:42:55 +0000 Subject: [PATCH] * src/gramps.glade: widen the ChildSelect window * src/SelectPerson.py: sort people before adding to list * src/SelectChild.py: sort people before adding to list * src/ChooseParents.py: sort people before adding to list * src/AddSpouse.py: sort people before adding to list * src/ListModel.py: sorting improvements * src/PlaceView.py: use ListModel * src/RelLib.py: sort places by name svn: r2272 --- src/AddSpouse.py | 2 +- src/ChooseParents.py | 4 ++-- src/SelectChild.py | 2 +- src/SelectPerson.py | 2 +- src/gramps.glade | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AddSpouse.py b/src/AddSpouse.py index a7de52e36..b7e6907fd 100644 --- a/src/AddSpouse.py +++ b/src/AddSpouse.py @@ -230,7 +230,7 @@ class AddSpouse: self.entries = [] self.slist.clear() self.slist.new_model() - for key in self.db.getPersonKeys(): + for key in self.db.sortPersonKeys(): data = self.db.getPersonDisplay(key) if data[2] == sgender: continue diff --git a/src/ChooseParents.py b/src/ChooseParents.py index 60f0ecac7..bd87963a0 100644 --- a/src/ChooseParents.py +++ b/src/ChooseParents.py @@ -161,7 +161,7 @@ class ChooseParents: dday = self.person.getDeath().getDateObj() person_list = [] - for key in self.db.getPersonKeys(): + for key in self.db.sortPersonKeys(): if pkey == key: continue @@ -235,7 +235,7 @@ class ChooseParents: dday = self.person.getDeath().getDateObj() person_list = [] - for key in self.db.getPersonKeys(): + for key in self.db.sortPersonKeys(): if pkey == key: continue diff --git a/src/SelectChild.py b/src/SelectChild.py index 2a47e08a1..33a76dafe 100644 --- a/src/SelectChild.py +++ b/src/SelectChild.py @@ -140,7 +140,7 @@ class SelectChild: slist[c.getId()] = 1 person_list = [] - for key in self.db.getPersonKeys(): + for key in self.db.sortPersonKeys(): person = self.db.getPerson(key) if filter: if slist.has_key(key) or person.getMainParents(): diff --git a/src/SelectPerson.py b/src/SelectPerson.py index 7eab45204..7763220b2 100644 --- a/src/SelectPerson.py +++ b/src/SelectPerson.py @@ -109,7 +109,7 @@ class SelectPerson: self.umodel.clear() self.umodel.new_model() - for key in self.db.getPersonKeys(): + for key in self.db.sortPersonKeys(): person = self.db.getPerson(key) if self.use_filter and not self.filter(person): continue diff --git a/src/gramps.glade b/src/gramps.glade index d57f202cd..1c109752a 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -4846,7 +4846,7 @@ GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE True - 450 + 500 400 True False