Fixed sensitivity of entries, fix relationship display in FamilyView, EditSource reference list, add spouse selection

svn: r1211
This commit is contained in:
Don Allingham 2002-11-27 13:36:11 +00:00
parent 4cd7010bcb
commit 2abc52cf06
4 changed files with 6 additions and 7 deletions

View File

@ -156,8 +156,7 @@ class AddSpouse:
if not iter: if not iter:
return return
row = model.get_path(iter) id = self.slist.get_object(iter)
id = self.entries[row[0]]
spouse = self.db.getPerson(id) spouse = self.db.getPerson(id)
# don't do anything if the marriage already exists # don't do anything if the marriage already exists

View File

@ -416,13 +416,13 @@ class ModifyParents:
fname = self.father.getPrimaryName().getName() fname = self.father.getPrimaryName().getName()
self.glade.get_widget("fname").set_text(fname) self.glade.get_widget("fname").set_text(fname)
else: else:
self.father_rel.set_senstive(0) self.father_rel.set_sensitive(0)
if self.mother: if self.mother:
mname = self.mother.getPrimaryName().getName() mname = self.mother.getPrimaryName().getName()
self.glade.get_widget("mname").set_text(mname) self.glade.get_widget("mname").set_text(mname)
else: else:
self.mother_rel.set_senstive(0) self.mother_rel.set_sensitive(0)
def quit(self,obj): def quit(self,obj):
self.top.destroy() self.top.destroy()

View File

@ -337,9 +337,9 @@ class FamilyView:
def nameof(self,l,p,mode): def nameof(self,l,p,mode):
if p: if p:
n = p.getPrimaryName().getName() n = p.getPrimaryName().getName()
return "%s: %s\n\tRelationship: %s" % (l,n,mode) return _("%s: %s\n\tRelationship: %s") % (l,n,mode)
else: else:
return "unknown\n" return _("%s: unknown") % (l)
def display_marriage(self,family): def display_marriage(self,family):

View File

@ -5677,7 +5677,7 @@
<property name="window_placement">GTK_CORNER_TOP_LEFT</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child> <child>
<widget class="GtkTreeView" id="treeview10"> <widget class="GtkTreeView" id="slist">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="headers_visible">True</property> <property name="headers_visible">True</property>