[pitivi: 7/11] trackobject: add scroll position in click()
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 7/11] trackobject: add scroll position in click()
- Date: Tue, 12 Oct 2010 08:13:21 +0000 (UTC)
commit a0bfe97bd9d262cbf44c2988a07138cb6cbf4d3d
Author: Alessandro Decina <alessandro d gmail com>
Date: Mon Oct 4 14:09:13 2010 +0200
trackobject: add scroll position in click()
pitivi/ui/trackobject.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/trackobject.py b/pitivi/ui/trackobject.py
index 95a7e00..083d7cc 100644
--- a/pitivi/ui/trackobject.py
+++ b/pitivi/ui/trackobject.py
@@ -229,8 +229,9 @@ class TrackObject(View, goocanvas.Group, Zoomable):
mode = SELECT_ADD
timeline.setSelectionToObj(element, mode)
else:
- self._view.app.current.seeker.seek(
- Zoomable.pixelToNs(pos[0]))
+ x, y = pos
+ x += self._hadj.get_value()
+ self._view.app.current.seeker.seek(Zoomable.pixelToNs(x))
timeline.setSelectionToObj(element, SELECT)
def __init__(self, instance, element, track, timeline):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]