* src/PedView.py: force an update of the cached person
* src/gramps_main.py: force an update of the cached person objects; thxumbnails are always png images svn: r5157
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
* src/po/fi.po: Translation update for 2.0.7.
|
* src/po/fi.po: Translation update for 2.0.7.
|
||||||
|
|
||||||
2005-08-31 Don Allingham <don@gramps-project.org>
|
2005-08-31 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/PedView.py: force an update of the cached person
|
||||||
|
* src/gramps_main.py: force an update of the cached person
|
||||||
* src/ReadGedcom.py: handle attributes if value is on the same line as the
|
* src/ReadGedcom.py: handle attributes if value is on the same line as the
|
||||||
keyword
|
keyword
|
||||||
|
|
||||||
@@ -47,7 +49,7 @@
|
|||||||
2005-08-29 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2005-08-29 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/plugins/NavWebPage.py: Correct link to Surname list page;
|
* src/plugins/NavWebPage.py: Correct link to Surname list page;
|
||||||
Better handling for not existing media object files and note-only
|
Better handling for not existing media object files and note-only
|
||||||
objects; thumbnails are always png images
|
objects; thxumbnails are always png images
|
||||||
* src/plugins/Check.py: Files of note-only objects are no longer
|
* src/plugins/Check.py: Files of note-only objects are no longer
|
||||||
reported as missing
|
reported as missing
|
||||||
|
|
||||||
|
@@ -197,6 +197,8 @@ class PedigreeView:
|
|||||||
self.active_person = None
|
self.active_person = None
|
||||||
|
|
||||||
def person_updated_cb(self,handle_list):
|
def person_updated_cb(self,handle_list):
|
||||||
|
if self.active_person and self.active_person.handle == handle_list[0]:
|
||||||
|
self.active_person = self.db.get_person_from_handle(handle_list[0])
|
||||||
self.load_canvas(self.active_person)
|
self.load_canvas(self.active_person)
|
||||||
|
|
||||||
def person_rebuild(self):
|
def person_rebuild(self):
|
||||||
@@ -220,7 +222,10 @@ class PedigreeView:
|
|||||||
as the root person of the tree."""
|
as the root person of the tree."""
|
||||||
|
|
||||||
self.clear()
|
self.clear()
|
||||||
|
|
||||||
|
if person:
|
||||||
|
person = self.db.get_person_from_handle(person.handle)
|
||||||
|
|
||||||
if person is not self.active_person:
|
if person is not self.active_person:
|
||||||
self.active_person = person
|
self.active_person = person
|
||||||
if person == None:
|
if person == None:
|
||||||
@@ -237,7 +242,7 @@ class PedigreeView:
|
|||||||
font = gtk.gdk.font_from_description(style.font_desc)
|
font = gtk.gdk.font_from_description(style.font_desc)
|
||||||
|
|
||||||
lst = [None]*31
|
lst = [None]*31
|
||||||
self.find_tree(self.active_person,0,1,lst)
|
self.find_tree(person,0,1,lst)
|
||||||
|
|
||||||
# determine the largest string width and height for calcuation
|
# determine the largest string width and height for calcuation
|
||||||
# of box sizes.
|
# of box sizes.
|
||||||
@@ -280,7 +285,7 @@ class PedigreeView:
|
|||||||
anchor=gtk.ANCHOR_WEST)
|
anchor=gtk.ANCHOR_WEST)
|
||||||
self.canvas_items.append(self.anchor_txt)
|
self.canvas_items.append(self.anchor_txt)
|
||||||
|
|
||||||
for family_handle in self.active_person.get_family_handle_list():
|
for family_handle in person.get_family_handle_list():
|
||||||
family = self.db.get_family_from_handle(family_handle)
|
family = self.db.get_family_from_handle(family_handle)
|
||||||
if not family:
|
if not family:
|
||||||
continue
|
continue
|
||||||
|
@@ -1224,7 +1224,8 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
|
|||||||
if page == PERSON_VIEW:
|
if page == PERSON_VIEW:
|
||||||
self.people_view.apply_filter()
|
self.people_view.apply_filter()
|
||||||
elif page == PEDIGREE_VIEW:
|
elif page == PEDIGREE_VIEW:
|
||||||
self.pedigree_view.load_canvas(self.active_person)
|
person = self.db.get_person_from_handle(self.active_person.handle)
|
||||||
|
self.pedigree_view.load_canvas(person)
|
||||||
|
|
||||||
def on_tools_clicked(self,obj):
|
def on_tools_clicked(self,obj):
|
||||||
if self.active_person:
|
if self.active_person:
|
||||||
|
Reference in New Issue
Block a user