From f1dfed8e1acb1b3805c43ec00efccebeebea19a6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 4 Apr 2006 21:55:35 +0000 Subject: [PATCH] widget connections svn: r6264 --- src/AutoComp.py | 1 + src/Editors/_EditLdsOrd.py | 9 +++++++++ src/Editors/_EditName.py | 24 +++++++++++++++--------- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/AutoComp.py b/src/AutoComp.py index f47614f65..e78ee6742 100644 --- a/src/AutoComp.py +++ b/src/AutoComp.py @@ -59,6 +59,7 @@ def fill_combo(combo,data_list): def fill_entry(entry,data_list): store = gtk.ListStore(str) + for data in data_list: if data: store.append(row=[data]) diff --git a/src/Editors/_EditLdsOrd.py b/src/Editors/_EditLdsOrd.py index 9e5897f13..e771744a9 100644 --- a/src/Editors/_EditLdsOrd.py +++ b/src/Editors/_EditLdsOrd.py @@ -109,6 +109,15 @@ class EditLdsOrd(EditSecondary): self.dbstate.get_place_completion(), self.db.readonly) + self.type_menu = MonitoredMenu( + self.top.get_widget('type'), + self.obj.set_type, + self.obj.get_type, + [(_('Baptism'),RelLib.LdsOrd.BAPTISM), + (_('Endowment'),RelLib.LdsOrd.ENDOWMENT), + (_('Sealed to Parents'),RelLib.LdsOrd.SEAL_TO_PARENTS)], + self.db.readonly) + temple_list = [] for val in lds.temple_codes.keys(): temple_list.append((lds.temple_codes[val],val)) diff --git a/src/Editors/_EditName.py b/src/Editors/_EditName.py index 5c62c3265..51f597c74 100644 --- a/src/Editors/_EditName.py +++ b/src/Editors/_EditName.py @@ -87,24 +87,28 @@ class EditName(EditSecondary): def _setup_fields(self): self.group_as = MonitoredEntry( - self.top.get_widget("group_as"), self.obj.set_group_as, - self.obj.get_group_as, self.db.readonly) + self.top.get_widget("group_as"), + self.obj.set_group_as, + self.obj.get_group_as, + self.db.readonly) if not self.original_group_as: self.group_as.force_value(self.obj.get_surname()) self.sort_as = MonitoredMenu( - self.top.get_widget('sort_as'),self.obj.set_sort_as, + self.top.get_widget('sort_as'), + self.obj.set_sort_as, self.obj.get_sort_as, - [(_('Default (based on locale'),RelLib.Name.DEF), + [(_('Default (based on locale)'),RelLib.Name.DEF), (_('Given name Family name'), RelLib.Name.FNLN), (_('Family name Given Name'), RelLib.Name.LNFN)], self.db.readonly) self.display_as = MonitoredMenu( self.top.get_widget('display_as'), - self.obj.set_display_as, self.obj.get_display_as, - [(_('Default (based on locale'),RelLib.Name.DEF), + self.obj.set_display_as, + self.obj.get_display_as, + [(_('Default (based on locale)'),RelLib.Name.DEF), (_('Given name Family name'), RelLib.Name.FNLN), (_('Family name Given Name'), RelLib.Name.LNFN)], self.db.readonly) @@ -126,9 +130,11 @@ class EditName(EditSecondary): self.obj.get_patronymic, self.db.readonly) self.surname_field = MonitoredEntry( - self.top.get_widget("alt_surname"), self.obj.set_surname, - self.obj.get_surname, self.db.readonly, - self.update_group_as) + self.top.get_widget("alt_surname"), + self.obj.set_surname, + self.obj.get_surname, + self.db.readonly, + changed=self.update_group_as) self.prefix_field = MonitoredEntry( self.top.get_widget("alt_prefix"), self.obj.set_surname_prefix,