* 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
This commit is contained in:
parent
b5f7ec7504
commit
da7b26c741
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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():
|
||||
|
@ -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
|
||||
|
@ -4846,7 +4846,7 @@
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="default_width">450</property>
|
||||
<property name="default_width">500</property>
|
||||
<property name="default_height">400</property>
|
||||
<property name="resizable">True</property>
|
||||
<property name="destroy_with_parent">False</property>
|
||||
|
Loading…
Reference in New Issue
Block a user