Consolidate all logic for setting up a 'surname' combo box.

svn: r531
This commit is contained in:
David Hampton
2001-11-01 02:33:55 +00:00
parent 26cb4577bd
commit 6e62aed286
8 changed files with 61 additions and 39 deletions

View File

@@ -74,11 +74,7 @@ class AddSpouse:
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("")
utils.attach_surnames(self.surname_combo)
# Typing CR selects 'Add Existing' button
self.top.editable_enters(self.given)