* src/EditPerson.py: remerge from 2.0.0
svn: r4553
This commit is contained in:
parent
5fa8323b81
commit
5ceb929937
@ -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,
|
||||||
|
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user