[pitivi] ui.timeline: seek playhead to mouse position on button release



commit dcebfca36e9686bf3e74f73ddcf7a3ecbcd7a807
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Thu Apr 23 14:55:24 2009 -0700

    ui.timeline: seek playhead to mouse position on button release
---
 pitivi/ui/timeline.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 0a2c082..12f86c3 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -232,6 +232,9 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         self.shrink = True
         self._timelineStartDurationChanged(self.timeline,
             self.timeline.duration)
+        # move the playhead to the point of the mouse-up
+        self.ruler.do_button_press_event(event)
+        self.ruler.do_button_release_event(event)
 
 ## Drag and Drop callbacks
 



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