* src/EditPerson.py: remerge from 2.0.0

svn: r4553
This commit is contained in:
Don Allingham
2005-05-11 17:25:14 +00:00
parent ed5c7adc82
commit b39724bcd6
2 changed files with 13 additions and 4 deletions

View File

@ -336,6 +336,15 @@ class EditPerson:
self.window.show()
def build_pdmap(self):
self.pdmap.clear()
cursor = self.db.get_place_cursor()
data = cursor.next()
while data:
self.pdmap[data[1][2]] = data[0]
data = cursor.next()
cursor.close()
def build_gallery(self,container):
self.iconmodel = gtk.ListStore(gtk.gdk.Pixbuf,str)
self.iconlist = gtk.IconView(self.iconmodel)
@ -925,10 +934,7 @@ class EditPerson:
if name != self.person.get_primary_name():
self.person.set_primary_name(name)
self.pdmap.clear()
for key in self.db.get_place_handles():
p = self.db.get_place_from_handle(key).get_display_info()
self.pdmap[p[0]] = key
self.build_pdmap()
# if not self.orig_birth.are_equal(self.birth):
# if self.orig_birth.is_empty():