[pitivi/ges] mainwindow: Activate/deactivate pipeline positition listen when needed
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges] mainwindow: Activate/deactivate pipeline positition listen when needed
- Date: Sat, 5 May 2012 20:19:10 +0000 (UTC)
commit a4e7df100d9731b8a5192d1a939ce4b16dc46cee
Author: Thibault Saunier <thibault saunier collabora com>
Date: Tue May 1 23:50:57 2012 -0400
mainwindow: Activate/deactivate pipeline positition listen when needed
When a project is loaded/closed, the position listener on the pipeline should
be activated/deacitvated
pitivi/mainwindow.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index a10b1e0..9213e0f 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -724,6 +724,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
self._connectToProjectSources(self.app.current.medialibrary)
self.app.current.timeline.connect("notify::duration",
self._timelineDurationChangedCb)
+ self.app.current.pipeline.activatePositionListener()
# This should only be done when loading a project, and disconnected
# as soon as we receive the signal.
@@ -876,8 +877,11 @@ class PitiviMainWindow(gtk.Window, Loggable):
return res
- def _projectManagerProjectClosedCb(self, projectManager, unused_project):
+ def _projectManagerProjectClosedCb(self, projectManager, project):
# we must disconnect from the project pipeline before it is released
+ if project.pipeline is not None:
+ project.pipeline.deactivatePositionListener()
+
self.timeline_ui.timeline = None
self.clipconfig.timeline = None
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]