* 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

@ -1,3 +1,6 @@
2005-05-11 Don Allingham <don@gramps-project.org>
* src/EditPerson.py: remerge from 2.0.0
2005-05-11 Alex Roitman <shura@gramps-project.org> 2005-05-11 Alex Roitman <shura@gramps-project.org>
* INSTALL, NEWS, README, acinclude.m4, configure.in, doc/gramps.1.in, * INSTALL, NEWS, README, acinclude.m4, configure.in, doc/gramps.1.in,
doc/gramps-manual/Makefile.am, doc/gramps-manual/C/*.xml, doc/gramps-manual/Makefile.am, doc/gramps-manual/C/*.xml,

View File

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