Consolidate all logic for setting up a 'surname' combo box.
svn: r531
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user