Fixed add spouse/family view update problem
svn: r570
This commit is contained in:
parent
12bb6c1623
commit
4989950eea
@ -3,6 +3,8 @@ Version 0.6.2pre
|
|||||||
* Improved GEDCOM import/export. Gramps now passes the GEDCHK program
|
* Improved GEDCOM import/export. Gramps now passes the GEDCHK program
|
||||||
and can now properly handle the quirks in names, notes, and parent/child
|
and can now properly handle the quirks in names, notes, and parent/child
|
||||||
relationships from PAF, Legacy, FTW, Brother's Keeper, and Family Origins.
|
relationships from PAF, Legacy, FTW, Brother's Keeper, and Family Origins.
|
||||||
|
* After an Add Spouse, make the new spouse display in the Family View
|
||||||
|
interface.
|
||||||
|
|
||||||
Version 0.6.1
|
Version 0.6.1
|
||||||
* Fixed Family View/Pedigree View button swap
|
* Fixed Family View/Pedigree View button swap
|
||||||
|
@ -97,7 +97,7 @@ gtkrcFile = "%s/gtkrc" % rootDir
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
progName = "gramps"
|
progName = "gramps"
|
||||||
version = "0.6.2pre"
|
version = "0.6.2"
|
||||||
copyright = "© 2001 Donald N. Allingham"
|
copyright = "© 2001 Donald N. Allingham"
|
||||||
authors = ["Donald N. Allingham", "David Hampton"]
|
authors = ["Donald N. Allingham", "David Hampton"]
|
||||||
comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program.")
|
comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program.")
|
||||||
|
@ -1367,34 +1367,38 @@ def load_family(family=None):
|
|||||||
number_of_families = len(active_person.getFamilyList())
|
number_of_families = len(active_person.getFamilyList())
|
||||||
if number_of_families > 1:
|
if number_of_families > 1:
|
||||||
myMenu = GtkMenu()
|
myMenu = GtkMenu()
|
||||||
if active_person != None:
|
index = 0
|
||||||
for family in active_person.getFamilyList():
|
opt_index = 0
|
||||||
person = None
|
for f in active_person.getFamilyList():
|
||||||
if family.getMother() == active_person:
|
person = None
|
||||||
if family.getFather() != None:
|
if f.getMother() == active_person:
|
||||||
person = family.getFather()
|
if f.getFather() != None:
|
||||||
else:
|
person = f.getFather()
|
||||||
if family.getMother() != None:
|
else:
|
||||||
person = family.getMother()
|
if f.getMother() != None:
|
||||||
|
person = f.getMother()
|
||||||
|
|
||||||
menuitem = GtkMenuItem(Config.nameof(person))
|
menuitem = GtkMenuItem(Config.nameof(person))
|
||||||
myMenu.append(menuitem)
|
myMenu.append(menuitem)
|
||||||
menuitem.set_data("person",person)
|
menuitem.set_data("person",person)
|
||||||
menuitem.set_data("family",family)
|
menuitem.set_data("family",f)
|
||||||
menuitem.connect("activate",on_spouselist_changed)
|
menuitem.connect("activate",on_spouselist_changed)
|
||||||
menuitem.show()
|
menuitem.show()
|
||||||
|
if family and f == family:
|
||||||
gtop.get_widget("fv_spouse").set_menu(myMenu)
|
opt_index = index
|
||||||
|
index = index + 1
|
||||||
|
gtop.get_widget("fv_spouse").set_menu(myMenu)
|
||||||
|
gtop.get_widget("fv_spouse").set_history(opt_index)
|
||||||
gtop.get_widget("lab_or_list").set_page(1)
|
gtop.get_widget("lab_or_list").set_page(1)
|
||||||
gtop.get_widget("edit_sp").set_sensitive(1)
|
gtop.get_widget("edit_sp").set_sensitive(1)
|
||||||
gtop.get_widget("delete_sp").set_sensitive(1)
|
gtop.get_widget("delete_sp").set_sensitive(1)
|
||||||
elif number_of_families == 1:
|
elif number_of_families == 1:
|
||||||
gtop.get_widget("lab_or_list").set_page(0)
|
gtop.get_widget("lab_or_list").set_page(0)
|
||||||
family = active_person.getFamilyList()[0]
|
f = active_person.getFamilyList()[0]
|
||||||
if active_person != family.getFather():
|
if active_person != f.getFather():
|
||||||
spouse = family.getFather()
|
spouse = f.getFather()
|
||||||
else:
|
else:
|
||||||
spouse = family.getMother()
|
spouse = f.getMother()
|
||||||
active_spouse = spouse
|
active_spouse = spouse
|
||||||
fv_spouse1 = gtop.get_widget("fv_spouse1")
|
fv_spouse1 = gtop.get_widget("fv_spouse1")
|
||||||
fv_spouse1.set_text(Config.nameof(spouse))
|
fv_spouse1.set_text(Config.nameof(spouse))
|
||||||
@ -1414,7 +1418,10 @@ def load_family(family=None):
|
|||||||
gtop.get_widget("delete_sp").set_sensitive(0)
|
gtop.get_widget("delete_sp").set_sensitive(0)
|
||||||
|
|
||||||
if number_of_families > 0:
|
if number_of_families > 0:
|
||||||
display_marriage(active_person.getFamilyList()[0])
|
if family:
|
||||||
|
display_marriage(family)
|
||||||
|
else:
|
||||||
|
display_marriage(active_person.getFamilyList()[0])
|
||||||
else:
|
else:
|
||||||
display_marriage(None)
|
display_marriage(None)
|
||||||
else:
|
else:
|
||||||
|
@ -567,12 +567,12 @@ def exportData(database, filename, progress, pbar, fbar, sbar):
|
|||||||
try:
|
try:
|
||||||
g = open(filename,"w")
|
g = open(filename,"w")
|
||||||
except IOError,msg:
|
except IOError,msg:
|
||||||
msg = "%s\n%s" % (_("Could not open %s") % filename,str(msg))
|
msg = "%s\n%s" % (_("%s could not be opened\n") % filename,str(msg))
|
||||||
GnomeErrorDialog(msg)
|
GnomeErrorDialog(msg)
|
||||||
progress.destroy()
|
progress.destroy()
|
||||||
return
|
return
|
||||||
except:
|
except:
|
||||||
GnomeErrorDialog(_("Could not open %s") % filename)
|
GnomeErrorDialog(_("%s could not be opened\n") % filename)
|
||||||
progress.destroy()
|
progress.destroy()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user