From 4536d98e94a0a142ac5c6e4d5f4e3bc8b43341e6 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 26 Nov 2003 02:21:29 +0000 Subject: [PATCH] * src/Marriage.py (__init__): Call AutoComp.AutoCombo() prior to setting text in place and temple combos. Set place text to empty string if LdsSeal is empty. Markup lds_label as bold if LdsSeal is not empty. svn: r2386 --- ChangeLog | 4 ++++ src/Marriage.py | 14 ++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 842e37efb..8de629ed2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ 2003-11-25 Alex Roitman * FAQ: Several minor corrections. New question about bug reports. * Makefile.am, Makefile.in: Add FAQ to EXTRA_DIST. + * src/Marriage.py (__init__): Call AutoComp.AutoCombo() prior to + setting text in place and temple combos. Set place text to empty + string if LdsSeal is empty. Markup lds_label as bold if LdsSeal is + not empty. 2003-11-25 Don Allingham * src/Utils.py (search_for): check for directory diff --git a/src/Marriage.py b/src/Marriage.py index 87b51624f..e9a830b52 100644 --- a/src/Marriage.py +++ b/src/Marriage.py @@ -183,6 +183,10 @@ class Marriage: self.lds_temple.set_popdown_strings(_temple_names) + place_list = self.pmap.keys() + place_list.sort() + self.autoplace = AutoComp.AutoCombo(self.lds_place, place_list) + ord = self.family.getLdsSeal() if ord: if ord.getPlace(): @@ -196,16 +200,18 @@ class Marriage: self.seal_stat = ord.getStatus() else: self.lds_temple.entry.set_text("") + self.lds_place.entry.set_text("") self.seal_stat = 0 if self.family.getComplete(): self.complete.set_active(1) - place_list = self.pmap.keys() - place_list.sort() - self.autoplace = AutoComp.AutoCombo(self.lds_place, place_list) - self.build_seal_menu() + + if ord: + Utils.bold_label(self.lds_label) + else: + Utils.unbold_label(self.lds_label) self.event_list.drag_dest_set(gtk.DEST_DEFAULT_ALL,pycode_tgts,gtk.gdk.ACTION_COPY) self.event_list.drag_source_set(gtk.gdk.BUTTON1_MASK,pycode_tgts, gtk.gdk.ACTION_COPY)