[pitivi] Test: Effect observer missing reference to the pipeline bug #636914



commit 0bf9b53c24d199b7e743e8fe2af8fd2f4c6cac55
Author: Thibault Saunier <thibault saunier collabora co uk>
Date:   Fri Dec 10 12:42:56 2010 +0100

    Test: Effect observer missing reference to the pipeline bug #636914

 pitivi/timeline/timeline_undo.py |    9 +++++++++
 pitivi/ui/mainwindow.py          |    3 +--
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline_undo.py b/pitivi/timeline/timeline_undo.py
index 292fd67..64199c8 100644
--- a/pitivi/timeline/timeline_undo.py
+++ b/pitivi/timeline/timeline_undo.py
@@ -346,6 +346,15 @@ class TimelineLogObserver(object):
         self.effect_properties_tracker = EffectGstElementPropertyChangeTracker(log)
         self._pipeline = None
 
+    def setPipeline(self, pipeline):
+        self._pipeline = pipeline
+        self.effect_properties_tracker.pipeline = pipeline
+
+    def getPipeline(self):
+        return self._pipeline
+
+    pipeline = property(getPipeline, setPipeline)
+
     def startObserving(self, timeline):
         self._connectToTimeline(timeline)
         for timeline_object in timeline.timeline_objects:
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 73d9c72..0c05cc7 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -1045,8 +1045,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
             if self.timeline:
                 self.timeline.project = self.project
                 self.clipconfig.project = self.project
-                self.app.timelineLogObserver.effect_properties_tracker.pipeline\
-                                                        = self.project.pipeline
+                self.app.timelineLogObserver.pipeline = self.project.pipeline
 
     project = receiver(_setProject)
 



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