Commit e02fdcd7 authored by Alexandru Băluț's avatar Alexandru Băluț

tabsmanager: Fix pages detachment

Fixes #2326
parent 0b453ba3
Pipeline #92967 passed with stages
in 33 minutes and 16 seconds
......@@ -43,6 +43,7 @@ class BaseTabs(Gtk.Notebook, Loggable):
self.settings = app.settings
notebook_widget_settings = self.get_settings()
notebook_widget_settings.props.gtk_dnd_drag_threshold = 1
self.connect("create-window", self.__create_window_cb)
# pylint: disable=arguments-differ
def append_page(self, child_name, child, label):
......@@ -77,7 +78,7 @@ class BaseTabs(Gtk.Notebook, Loggable):
self.insert_page(child, label, original_position)
self._set_child_properties(child, label)
def do_create_window(self, child, unused_x, unused_y):
def __create_window_cb(self, unused_notebook, child, unused_x, unused_y):
"""Handles the detachment of a page.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment