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 1e89380047
commit 3a2e952bb1
4 changed files with 6 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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