6306: Remove focus from the help button in detached gramplet windows

svn: r21080
This commit is contained in:
Nick Hall 2013-01-12 00:03:16 +00:00
parent c72a3f2492
commit 6c313b0a58

View File

@ -594,10 +594,18 @@ class DetachedWindow(ManagedWindow):
self.notebook = Gtk.Notebook() self.notebook = Gtk.Notebook()
self.notebook.set_show_tabs(False) self.notebook.set_show_tabs(False)
self.notebook.set_show_border(False) self.notebook.set_show_border(False)
self.notebook.connect('page-added', self.page_added)
self.notebook.show() self.notebook.show()
self.window.vbox.pack_start(self.notebook, True, True, 0) self.window.vbox.pack_start(self.notebook, True, True, 0)
self.show() self.show()
def page_added(self, notebook, gramplet, page_num):
"""
Called when the gramplet is added to the notebook. This takes the
focus from the help button (bug #6306).
"""
gramplet.grab_focus()
def handle_response(self, object, response): def handle_response(self, object, response):
""" """
Callback for taking care of button clicks. Callback for taking care of button clicks.