Merge pull request #470 from marktimarev/issue#400-disable-tab-focusing

Set CAN_FOCUS to False for notebook widgets
This commit is contained in:
Matt Rose 2021-07-23 11:44:54 -04:00 committed by GitHub
commit 27555de35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ class Notebook(Container, Gtk.Notebook):
self.connect('scroll-event', self.on_scroll_event)
self.configure()
self.set_can_focus(False)
child = window.get_child()
window.remove(child)
window.add(self)