From 204b76f3c8fb65237162304fe579ec5ae17864c7 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 --- gramps2/ChangeLog | 4 ++++ gramps2/src/Marriage.py | 14 ++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 842e37efb..8de629ed2 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/Marriage.py b/gramps2/src/Marriage.py index 87b51624f..e9a830b52 100644 --- a/gramps2/src/Marriage.py +++ b/gramps2/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)