Auto complete surname in the 'Add Spouse' dialog.

svn: r525
This commit is contained in:
David Hampton
2001-10-30 10:10:54 +00:00
parent d5a0b176b1
commit e85afc2a0f
2 changed files with 34 additions and 15 deletions

View File

@@ -71,8 +71,14 @@ class AddSpouse:
self.top = self.glade.get_widget("spouseDialog")
self.given = self.glade.get_widget("given")
self.surname = self.glade.get_widget("surname")
self.surname_combo = self.glade.get_widget("surname_combo")
self.rel_combo.set_popdown_strings(const.familyRelations)
if len(const.surnames) > 0:
const.surnames.sort()
self.surname_combo.set_popdown_strings(const.surnames)
self.surname_combo.disable_activate()
self.surname.set_text("")
# Typing CR selects 'Add Existing' button
self.top.editable_enters(self.given)