6969: Connect to switch-page signal after the initial gramplets have been added

svn: r22801
This commit is contained in:
Nick Hall 2013-08-05 18:35:39 +00:00
parent f33607ac7c
commit 435f5106de

View File

@ -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.