[pitivi] ui.timeline.py: set scroll position when zoom changes



commit fb4f8fe5891a496cf16734444dc8fc1261132d8a
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Mon Sep 7 23:25:35 2009 -0700

    ui.timeline.py: set scroll position when zoom changes
    closes bug 591617

 pitivi/ui/timeline.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 1ef8fed..3d9bcbe 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -368,7 +368,8 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         self._position = position
         self.ruler.timelinePositionChanged(position)
         self._canvas._position = position
-        self.scrollToPlayhead()
+        if self._state == gst.STATE_PLAYING:
+            self.scrollToPlayhead()
 
     def stateChanged(self, state):
         self._state = state
@@ -382,8 +383,6 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         return False
 
     def scrollToPosition(self, position):
-        if not self._state == gst.STATE_PLAYING:
-            return
         if position > self.hadj.upper:
             # we can't perform the scroll because the canvas needs to be
             # updated



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