From 3a2e952bb1fc80d316175030e54d8c2b996c1cec Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 27 Nov 2002 13:36:11 +0000 Subject: [PATCH] Fixed sensitivity of entries, fix relationship display in FamilyView, EditSource reference list, add spouse selection svn: r1211 --- src/AddSpouse.py | 3 +-- src/ChooseParents.py | 4 ++-- src/FamilyView.py | 4 ++-- src/gramps.glade | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/AddSpouse.py b/src/AddSpouse.py index a8823ec7a..9e3106143 100644 --- a/src/AddSpouse.py +++ b/src/AddSpouse.py @@ -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 diff --git a/src/ChooseParents.py b/src/ChooseParents.py index 756dcb560..0d4a8506b 100644 --- a/src/ChooseParents.py +++ b/src/ChooseParents.py @@ -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() diff --git a/src/FamilyView.py b/src/FamilyView.py index 4acad7665..ba058666a 100644 --- a/src/FamilyView.py +++ b/src/FamilyView.py @@ -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): diff --git a/src/gramps.glade b/src/gramps.glade index 5a11f323a..7df78a99a 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -5677,7 +5677,7 @@ GTK_CORNER_TOP_LEFT - + True True True