[pitivi] Take into account the horizontal adjustment position when dropping clips on the timeline.



commit 354b2d425d03d2be4d27761c085280fae75871c5
Author: Alessandro Decina <alessandro d gmail com>
Date:   Thu Sep 3 14:23:13 2009 +0200

    Take into account the horizontal adjustment position when dropping clips on the timeline.

 pitivi/ui/timeline.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index c19d270..1ef8fed 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -299,7 +299,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
                 focus = self._temp_objects[0]
                 self._move_context = MoveContext(self.timeline,
                         focus, set(self._temp_objects[1:]))
-            self._move_temp_source(x, y)
+            self._move_temp_source(self.hadj.props.value + x, y)
         return True
 
     def _dragLeaveCb(self, unused_layout, unused_context, unused_tstamp):
@@ -318,7 +318,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         focus = self._temp_objects[0]
         self._move_context = MoveContext(self.timeline,
                 focus, set(self._temp_objects[1:]))
-        self._move_temp_source(x, y)
+        self._move_temp_source(self.hadj.props.value + x, y)
         self._move_context.finish()
         self.app.action_log.commit()
         context.drop_finish(True, timestamp)



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