[pitivi] mainwindow: Stop disabling itself when showing the Render dialog
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] mainwindow: Stop disabling itself when showing the Render dialog
- Date: Mon, 11 Jul 2016 13:29:50 +0000 (UTC)
commit c34e373d665153edd7485f1c4bc026656c977f17
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Jun 29 14:13:10 2016 +0200
mainwindow: Stop disabling itself when showing the Render dialog
Gtk already does this.
Differential Revision: https://phabricator.freedesktop.org/D1144
pitivi/mainwindow.py | 7 -------
pitivi/timeline/timeline.py | 12 ------------
2 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 45d8d68..e8c5d4f 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -176,9 +176,6 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
project = self.app.project_manager.current_project
dialog = RenderDialog(self.app, project)
- dialog.window.connect("destroy", self._renderDialogDestroyCb)
- self.set_sensitive(False)
- self.timeline_ui.disableKeyboardAndMouseEvents()
dialog.window.show()
def _destroyedCb(self, unused_self):
@@ -207,10 +204,6 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
self.vpaned.remove(self.timeline_ui)
self.timeline_ui.destroy()
- def _renderDialogDestroyCb(self, unused_dialog):
- self.set_sensitive(True)
- self.timeline_ui.enableKeyboardAndMouseEvents()
-
def _renderCb(self, unused_button):
self.showRenderDialog()
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index a092caf..87bf8dd 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1362,18 +1362,6 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
self.show_all()
- def enableKeyboardAndMouseEvents(self):
- self.info("Unblocking timeline mouse and keyboard signals")
- self.timeline.disconnect_by_func(self._ignoreAllEventsCb)
-
- def disableKeyboardAndMouseEvents(self):
- """A safety measure to prevent interacting with the timeline."""
- self.info("Blocking timeline mouse and keyboard signals")
- self.timeline.connect("event", self._ignoreAllEventsCb)
-
- def _ignoreAllEventsCb(self, *unused_args):
- return True
-
def _getLongestLayer(self):
"""Returns the longest layer."""
layers = self.ges_timeline.get_layers()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]