* src/DataViews/_PedigreeView.py: Bootstrap resize handling using "show" event because the "expose" event was not emitted in all cases (closes #202); Redraw on family-* signals too to show for example newly added parents.
svn: r6914
This commit is contained in:
parent
8004084bda
commit
22595c0129
@ -1,3 +1,9 @@
|
|||||||
|
2006-06-19 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
|
* src/DataViews/_PedigreeView.py: Bootstrap resize handling using
|
||||||
|
"show" event because the "expose" event was not emitted in all
|
||||||
|
cases (closes #202); Redraw on family-* signals too to show for
|
||||||
|
example newly added parents.
|
||||||
|
|
||||||
2006-06-18 Don Allingham <don@gramps-project.org>
|
2006-06-18 Don Allingham <don@gramps-project.org>
|
||||||
* help/C/gramps-manual.xml: integrate into a single doc
|
* help/C/gramps-manual.xml: integrate into a single doc
|
||||||
* help/C/figures/*.png: updated images
|
* help/C/figures/*.png: updated images
|
||||||
|
@ -457,7 +457,7 @@ class PedigreeView(PageView.PersonNavView):
|
|||||||
|
|
||||||
self.notebook = gtk.Notebook()
|
self.notebook = gtk.Notebook()
|
||||||
self.notebook.connect("button-press-event", self.bg_button_press_cb)
|
self.notebook.connect("button-press-event", self.bg_button_press_cb)
|
||||||
self.bootstrap_handler = self.notebook.connect("expose-event", self.init_parent_signals_cb)
|
self.bootstrap_handler = self.notebook.connect("size-request", self.init_parent_signals_cb)
|
||||||
self.notebook.set_show_border(False)
|
self.notebook.set_show_border(False)
|
||||||
self.notebook.set_show_tabs(False)
|
self.notebook.set_show_tabs(False)
|
||||||
|
|
||||||
@ -547,10 +547,14 @@ class PedigreeView(PageView.PersonNavView):
|
|||||||
is no need to store the database, since we will get the value
|
is no need to store the database, since we will get the value
|
||||||
from self.state.db
|
from self.state.db
|
||||||
"""
|
"""
|
||||||
db.connect('person-add', self.person_updated_cb)
|
db.connect('person-add', self.person_rebuild)
|
||||||
db.connect('person-update', self.person_updated_cb)
|
db.connect('person-update', self.person_rebuild)
|
||||||
db.connect('person-delete', self.person_updated_cb)
|
db.connect('person-delete', self.person_rebuild)
|
||||||
db.connect('person-rebuild', self.person_rebuild)
|
db.connect('person-rebuild', self.person_rebuild)
|
||||||
|
db.connect('family-update', self.person_rebuild)
|
||||||
|
db.connect('family-add', self.person_rebuild)
|
||||||
|
db.connect('family-delete', self.person_rebuild)
|
||||||
|
db.connect('family-rebuild', self.person_rebuild)
|
||||||
self.bookmarks.update_bookmarks(self.dbstate.db.get_bookmarks())
|
self.bookmarks.update_bookmarks(self.dbstate.db.get_bookmarks())
|
||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
self.bookmarks.redraw()
|
self.bookmarks.redraw()
|
||||||
@ -564,14 +568,7 @@ class PedigreeView(PageView.PersonNavView):
|
|||||||
else:
|
else:
|
||||||
self.rebuild_trees(None)
|
self.rebuild_trees(None)
|
||||||
|
|
||||||
def person_updated_cb(self,handle_list):
|
def person_rebuild(self,dummy=None):
|
||||||
self.dirty = True
|
|
||||||
if self.dbstate.active:
|
|
||||||
self.rebuild_trees(self.dbstate.active.handle)
|
|
||||||
else:
|
|
||||||
self.rebuild_trees(None)
|
|
||||||
|
|
||||||
def person_rebuild(self):
|
|
||||||
self.dirty = True
|
self.dirty = True
|
||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
self.rebuild_trees(self.dbstate.active.handle)
|
self.rebuild_trees(self.dbstate.active.handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user