* src/gramps.glade: Minor cleanups for the alternate family view.

* src/gramps_main.py: Likewise.


svn: r2050
This commit is contained in:
Alex Roitman
2003-08-26 04:26:09 +00:00
parent cd59a4f924
commit 7dc824487c
3 changed files with 13 additions and 1 deletions

View File

@@ -417,6 +417,7 @@ class Gramps:
"on_edit_selected_people" : self.load_selected_people,
"on_edit_bookmarks_activate" : self.on_edit_bookmarks_activate,
"on_exit_activate" : self.on_exit_activate,
"on_family_activate" : self.on_family_activate,
"on_family1_activate" : self.on_family1_activate,
"on_family2_activate" : self.on_family2_activate,
"on_find_activate" : self.on_find_activate,
@@ -1795,6 +1796,13 @@ class Gramps:
"""Switches to the person list view"""
self.views.set_current_page(PERSON_VIEW)
def on_family_activate(self,obj):
"""Switches to the family view"""
if GrampsCfg.familyview == 0:
self.on_family1_activate(obj)
else:
self.on_family2_activate(obj)
def on_family1_activate(self,obj):
"""Switches to the family view"""
self.views.set_current_page(FAMILY_VIEW1)