* src/DataViews/_PedigreeView.py: Set dirty flag to force redrawing when changing tree style

* src/plugins/TestcaseGenerator.py: Update to new GrampsTypes



svn: r6398
This commit is contained in:
Martin Hawlisch
2006-04-21 20:03:09 +00:00
parent 524c5fe207
commit 267741996a
3 changed files with 23 additions and 18 deletions

View File

@ -1079,11 +1079,13 @@ class PedigreeView(PageView.PersonNavView):
def change_force_size_cb(self,event,data):
if data in [0,2,3,4,5]:
self.force_size = data
self.dirty = True
self.size_request_cb(self.notebook.parent,None) # switch to matching size
def change_tree_style_cb(self,event,data):
if data in [0,1]:
if self.tree_style != data:
self.dirty = True
self.tree_style = data
if self.dbstate.active:
self.rebuild_trees(self.dbstate.active.handle) # Rebuild using new style
@ -1092,6 +1094,7 @@ class PedigreeView(PageView.PersonNavView):
def change_show_images_cb(self,event):
self.show_images = not self.show_images
self.dirty = True
if self.dbstate.active:
self.rebuild_trees(self.dbstate.active.handle) # Rebuild using new style
else:
@ -1099,6 +1102,7 @@ class PedigreeView(PageView.PersonNavView):
def change_show_marriage_cb(self,event):
self.show_marriage_data = not self.show_marriage_data
self.dirty = True
if self.dbstate.active:
self.rebuild_trees(self.dbstate.active.handle) # Rebuild using new style
else: