[pitivi] tabsmanager: Fix pages detachment



commit 7f176676ab0c80b08128800e0417da770e951cc8
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Apr 10 03:06:43 2019 +0200

    tabsmanager: Fix pages detachment

 pitivi/tabsmanager.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/pitivi/tabsmanager.py b/pitivi/tabsmanager.py
index 5126a206..966955e1 100644
--- a/pitivi/tabsmanager.py
+++ b/pitivi/tabsmanager.py
@@ -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.
 
         Args:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]