From a2f01e1a7d05dd36c2843fc5fec8e7cdd27b9c41 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 5 Aug 2013 18:35:32 +0000 Subject: [PATCH] 6969: Connect to switch-page signal after the initial gramplets have been added svn: r22800 --- gramps/gui/widgets/grampletbar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gui/widgets/grampletbar.py b/gramps/gui/widgets/grampletbar.py index b1474977f..064c467af 100644 --- a/gramps/gui/widgets/grampletbar.py +++ b/gramps/gui/widgets/grampletbar.py @@ -124,7 +124,6 @@ class GrampletBar(Gtk.Notebook): book_button.show() self.set_action_widget(book_button, Gtk.PackType.END) - 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) @@ -150,6 +149,9 @@ class GrampletBar(Gtk.Notebook): uistate.connect('grampletbar-close-changed', self.cb_close_changed) + # 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.