[pitivi/ges] timeline: Update the canvas' playhead position when zooming
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges] timeline: Update the canvas' playhead position when zooming
- Date: Thu, 12 Apr 2012 18:02:23 +0000 (UTC)
commit d228a0c871175fc2ea2c11facadc97e41ead30c4
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Thu Apr 12 14:01:53 2012 -0400
timeline: Update the canvas' playhead position when zooming
pitivi/timeline/timeline.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 7ece7d9..e442406 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -235,6 +235,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
return True
def do_expose_event(self, event):
+ self.debug("exposing TimelineCanvas %s", list(event.area))
allocation = self.get_allocation()
width = allocation.width
height = allocation.height
@@ -357,6 +358,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
position = 0
def timelinePositionChanged(self, position):
+ self.debug("value : %r" % position)
self.position = position
self._playhead.props.x = self.nsToPixel(position)
@@ -379,7 +381,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
if self._timeline:
self._timeline.dead_band = self.pixelToNs(
self.settings.edgeSnapDeadband)
- #self._timelinePositionChanged(self.position)
+ self.timelinePositionChanged(self.position)
## settings callbacks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]