* 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
This commit is contained in:
Alex Roitman 2003-11-26 02:21:29 +00:00
parent e2c693b7f0
commit 204b76f3c8
2 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,10 @@
2003-11-25 Alex Roitman <shura@alex.neuro.umn.edu>
* 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 <dallingham@users.sourceforge.net>
* src/Utils.py (search_for): check for directory

View File

@ -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,17 +200,19 @@ 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)
self.event_list.connect('drag_data_get', self.ev_source_drag_data_get)