[pitivi] titleeditor: Make the notebook page switch handler more robust
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] titleeditor: Make the notebook page switch handler more robust
- Date: Fri, 28 Feb 2014 03:13:50 +0000 (UTC)
commit 48db8742addeff97314f7fe4cca528a4e6f427a6
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Feb 23 23:27:16 2014 +0100
titleeditor: Make the notebook page switch handler more robust
pitivi/mainwindow.py | 2 +-
pitivi/titleeditor.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index e37f835..fe3769d 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -400,7 +400,7 @@ class PitiviMainWindow(Gtk.Window, Loggable):
self.context_tabs.append_page(self.clipconfig, Gtk.Label(label=_("Clip configuration")))
self.context_tabs.append_page(self.trans_list, Gtk.Label(label=_("Transitions")))
self.context_tabs.append_page(self.title_editor.widget, Gtk.Label(label=_("Title editor")))
- self.context_tabs.connect("switch-page", self.title_editor.tab_switched)
+ self.context_tabs.connect("switch-page", self.title_editor.tabSwitchedCb)
self.clipconfig.show()
self.trans_list.show()
diff --git a/pitivi/titleeditor.py b/pitivi/titleeditor.py
index b8fd421..9059a38 100644
--- a/pitivi/titleeditor.py
+++ b/pitivi/titleeditor.py
@@ -872,8 +872,8 @@ class TitleEditor(Loggable):
def drag_release_event(self, unused_widget, unused_event):
self._drag_events = []
- def tab_switched(self, unused_notebook, unused_arg1, arg2):
- if arg2 == 2:
+ def tabSwitchedCb(self, unused_notebook, page_widget, unused_page_index):
+ if self.widget == page_widget:
self._connect_signals()
else:
self._disconnect_signals()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]