From fe159d611a99ec36419a09b95442957c2dd3cdb1 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 26 Aug 2003 04:26:09 +0000 Subject: [PATCH] * src/gramps.glade: Minor cleanups for the alternate family view. * src/gramps_main.py: Likewise. svn: r2050 --- gramps2/ChangeLog | 4 ++++ gramps2/src/gramps.glade | 2 +- gramps2/src/gramps_main.py | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 773b61730..483abb8cf 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2003-08-25 Alex Roitman + * src/gramps.glade: Minor cleanups for the alternate family view. + * src/gramps_main.py: Likewise. + 2003-08-25 Don Allingham * src/gramps.glade: move alternate family view tab, assign a few object names diff --git a/gramps2/src/gramps.glade b/gramps2/src/gramps.glade index 139138f19..b53c9d465 100644 --- a/gramps2/src/gramps.glade +++ b/gramps2/src/gramps.glade @@ -925,7 +925,7 @@ True True GTK_RELIEF_NONE - + diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 1ed063dc5..1b41ed450 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -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)