* src/ChooseParents.py: Fix widget sensitivity problem, assign

integer value instead of string to relationship type
* src/FamilyView.py: fix child relationship display value
* src/GrampsBSDDB.py: upgrade to DB version 4 (remove string
relationship types)


svn: r4152
This commit is contained in:
Don Allingham
2005-03-10 01:38:08 +00:00
parent 9ad57e1c2f
commit 9041c520d5
4 changed files with 49 additions and 17 deletions

View File

@@ -238,7 +238,8 @@ class FamilyView:
self.spouse_list.append_column(column)
self.selected_spouse = None
self.child_list.drag_dest_set(gtk.DEST_DEFAULT_ALL,pycode_tgts,ACTION_COPY)
self.child_list.drag_dest_set(gtk.DEST_DEFAULT_ALL,
pycode_tgts,ACTION_COPY)
self.child_list.drag_source_set(BUTTON1_MASK, pycode_tgts, ACTION_COPY)
self.child_list.connect('drag_data_get', self.drag_data_get)
self.child_list.connect('drag_data_received',self.drag_data_received)
@@ -1065,8 +1066,11 @@ class FamilyView:
mother_handle = fam.get_mother_handle()
f = self.parent.db.get_person_from_handle(father_handle)
m = self.parent.db.get_person_from_handle(mother_handle)
father = self.nameof(_("Father"),f,frel)
mother = self.nameof(_("Mother"),m,mrel)
father = self.nameof(_("Father"),f,
const.child_rel_list[frel])
mother = self.nameof(_("Mother"),m,
const.child_rel_list[mrel])
node = model.append()
if not sel: