[pitivi/1.0] tabsmanager: Fix pages detachment
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/1.0] tabsmanager: Fix pages detachment
- Date: Fri, 5 Jul 2019 01:30:14 +0000 (UTC)
commit e02fdcd77d6fea73dd1f859d058ab24b243dcda9
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Apr 10 03:06:43 2019 +0200
tabsmanager: Fix pages detachment
Fixes #2326
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]