* src/EditPerson.py: Make gender guessing work again

svn: r4812
This commit is contained in:
Martin Hawlisch 2005-06-08 21:12:32 +00:00
parent 35935f491f
commit 7f76c26a59
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2005-06-08 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/EditPerson.py: Make gender guessing work again
2005-06-08 Alex Roitman <shura@gramps-project.org>
* src/gramps_main.py (init_interface): Set proper color for new icons.
* src/gramps.glade (gramps): Label new buttons, left-align labels.

View File

@ -112,7 +112,7 @@ class EditPerson:
self.pdmap = {}
self.add_places = []
self.name_display = NameDisplay.displayer
self.should_guess_gender = (person.get_gramps_id() == '' and
self.should_guess_gender = (not person.get_gramps_id() and
person.get_gender () ==
RelLib.Person.UNKNOWN)
@ -603,6 +603,9 @@ class EditPerson:
if not self.should_guess_gender:
return
gender = self.db.genderStats.guess_gender(unicode(entry.get_text ()))
self.gender.set_active( gender)
def build_menu(self,list,task,opt_menu,type):
cell = gtk.CellRendererText()
opt_menu.pack_start(cell,True)