diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 987ac444a..0809577c7 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-05-01 Don Allingham + * src/DataViews/_PersonView.py (PersonView.define_actions): add + expand and collapse all node menu entries + 2006-05-01 Alex Roitman * various: merge changes from gramps20. diff --git a/gramps2/src/DataViews/_PersonView.py b/gramps2/src/DataViews/_PersonView.py index 4bf937fd6..835b8e4df 100644 --- a/gramps2/src/DataViews/_PersonView.py +++ b/gramps2/src/DataViews/_PersonView.py @@ -114,6 +114,10 @@ class PersonView(PageView.PersonNavView): callback=self.edit) self.add_action('Remove', gtk.STOCK_REMOVE, "_Remove", callback=self.remove) + self.add_action('OpenAllNodes', None, "Expand all nodes", + callback=self.open_all_nodes) + self.add_action('CloseAllNodes', None, "Close all nodes", + callback=self.close_all_nodes) self.add_action('Jump', None, "_Jump", accel="j",callback=self.jumpto) @@ -250,6 +254,9 @@ class PersonView(PageView.PersonNavView): + + + @@ -402,6 +409,12 @@ class PersonView(PageView.PersonNavView): except Errors.WindowActiveError: pass + def open_all_nodes(self,obj): + self.tree.expand_all() + + def close_all_nodes(self,obj): + self.tree.collapse_all() + def remove(self,obj): mlist = self.get_selected_objects() if len(mlist) == 0: