* src/EditPerson.py: Make gender guessing work again
svn: r4812
This commit is contained in:
parent
d7ba30cacc
commit
a7778ace75
@ -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>
|
2005-06-08 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/gramps_main.py (init_interface): Set proper color for new icons.
|
* src/gramps_main.py (init_interface): Set proper color for new icons.
|
||||||
* src/gramps.glade (gramps): Label new buttons, left-align labels.
|
* src/gramps.glade (gramps): Label new buttons, left-align labels.
|
||||||
|
@ -112,7 +112,7 @@ class EditPerson:
|
|||||||
self.pdmap = {}
|
self.pdmap = {}
|
||||||
self.add_places = []
|
self.add_places = []
|
||||||
self.name_display = NameDisplay.displayer
|
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 () ==
|
person.get_gender () ==
|
||||||
RelLib.Person.UNKNOWN)
|
RelLib.Person.UNKNOWN)
|
||||||
|
|
||||||
@ -603,6 +603,9 @@ class EditPerson:
|
|||||||
if not self.should_guess_gender:
|
if not self.should_guess_gender:
|
||||||
return
|
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):
|
def build_menu(self,list,task,opt_menu,type):
|
||||||
cell = gtk.CellRendererText()
|
cell = gtk.CellRendererText()
|
||||||
opt_menu.pack_start(cell,True)
|
opt_menu.pack_start(cell,True)
|
||||||
|
Loading…
Reference in New Issue
Block a user