Set CAN_FOCUS to False for notebook widgets

This commit is contained in:
Mark Timarev 2021-07-22 17:07:57 +03:00
parent 3bb7d53235
commit 4c83feaf5d
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.connect('scroll-event', self.on_scroll_event)
self.configure() self.configure()
self.set_can_focus(False)
child = window.get_child() child = window.get_child()
window.remove(child) window.remove(child)
window.add(self) window.add(self)