diff --git a/src/AddSpouse.py b/src/AddSpouse.py index c60fdab56..4d02beeed 100644 --- a/src/AddSpouse.py +++ b/src/AddSpouse.py @@ -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) diff --git a/src/gramps.glade b/src/gramps.glade index 348aa8e36..5a685975b 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -3544,26 +3544,22 @@ - GtkEntry - surname - True - - activate - on_surname_activate - spouseDialog - Sat, 22 Sep 2001 04:20:48 GMT - - True - True - 0 - + GtkCombo + surname_combo + 5 + False + True + False + True + False + 1 2 1 2 - 5 - 5 + 0 + 0 True False False @@ -3571,6 +3567,23 @@ True False + + + GtkEntry + GtkCombo:entry + surname + True + + insert_text + on_combo_insert_text + surname_combo + Tue, 30 Oct 2001 09:51:42 GMT + + True + True + 0 + +