[pitivi] ui.timeline.py: add method setState() which records pipeline state



commit 81697f0bbac608e11099714bbd2e7499176593ef
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Mon Aug 3 17:41:01 2009 -0700

    ui.timeline.py: add method setState() which records pipeline state

 pitivi/ui/timeline.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 60c734d..bd0ad40 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -131,6 +131,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         self._factories = None
         self._finish_drag = False
         self._position = 0
+        self._state = gst.STATE_NULL
         self._createUI()
         self._prev_duration = 0
         self.shrink = True
@@ -357,6 +358,9 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         self._canvas._position = position
         self.scrollToPlayhead()
 
+    def stateChanged(self, state):
+        self._state = state
+
     def scrollToPlayhead(self):
         width = self.get_allocation().width
         new_pos = Zoomable.nsToPixel(self._position)



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