From 91a91268764c1d8043279b8d0f32a40d5ff7bd27 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 5 Aug 2013 18:35:11 +0000 Subject: [PATCH] 6969: Connect to switch-page signal after the initial gramplets have been added svn: r22799 --- src/gui/grampsbar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/grampsbar.py b/src/gui/grampsbar.py index af66195ab..5fc3b487a 100644 --- a/src/gui/grampsbar.py +++ b/src/gui/grampsbar.py @@ -91,7 +91,6 @@ class GrampsBar(gtk.Notebook): self.set_group_id(1) self.set_show_border(False) self.set_scrollable(True) - self.connect('switch-page', self.__switch_page) self.connect('page-added', self.__page_added) self.connect('page-removed', self.__page_removed) self.connect('create-window', self.__create_window) @@ -116,6 +115,9 @@ class GrampsBar(gtk.Notebook): self.show() self.set_current_page(config_settings[1]) + # Connect after gramplets added to prevent making them active + self.connect('switch-page', self.__switch_page) + def __load(self, defaults): """ Load the gramplets from the configuration file.