pitivi r1423 - trunk/pitivi/ui
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1423 - trunk/pitivi/ui
- Date: Fri, 28 Nov 2008 17:37:03 +0000 (UTC)
Author: edwardrv
Date: Fri Nov 28 17:37:03 2008
New Revision: 1423
URL: http://svn.gnome.org/viewvc/pitivi?rev=1423&view=rev
Log:
make sure canvas bounds are set after zoom change
Modified:
trunk/pitivi/ui/timelinecanvas.py
Modified: trunk/pitivi/ui/timelinecanvas.py
==============================================================================
--- trunk/pitivi/ui/timelinecanvas.py (original)
+++ trunk/pitivi/ui/timelinecanvas.py Fri Nov 28 17:37:03 2008
@@ -169,6 +169,7 @@
def zoomChanged(self):
if self.timeline:
self.timeline.setDeadband(self.pixelToNs(DEADBAND))
+ self._request_size()
## Timeline callbacks
@@ -182,7 +183,10 @@
timeline = receiver(__set_timeline)
@handler(timeline, "start-duration-changed")
- def _request_size(self, unused_item, start, duration):
+ def _start_duration_cb(self, unused_item, unused_start, unused_dur):
+ self._request_size()
+
+ def _request_size(self):
tl, br = Point.from_widget_bounds(self)
pw, ph = br - tl
tl, br = Point.from_item_bounds(self.tracks)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]