6969: Connect to switch-page signal after the initial gramplets have been added
svn: r22800
This commit is contained in:
parent
c075bea146
commit
a2f01e1a7d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user