pitivi r1154 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- From: blewis svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1154 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- Date: Mon, 30 Jun 2008 12:56:57 +0000 (UTC)
Author: blewis
Date: Mon Jun 30 12:56:57 2008
New Revision: 1154
URL: http://svn.gnome.org/viewvc/pitivi?rev=1154&view=rev
Log:
reviewed by: <delete if not using a buddy>
* pitivi/ui/complextimeline.py:
Zooming works \o/ ... now to fix the timeline alignment issue
Modified:
branches/SOC_2008_BLEWIS/ChangeLog
branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py
Modified: branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py
==============================================================================
--- branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py (original)
+++ branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py Mon Jun 30 12:56:57 2008
@@ -90,7 +90,7 @@
self._zoom_adjustment = gtk.Adjustment()
self._zoom_ratio = 0.0
self._zoom_adjustment.lower = 0.1
- self._zoom_adjustment.upper = 10
+ self._zoom_adjustment.upper = 1000
self._zoom_adjustment.connect("value-changed", self._adjust_zoom)
self.set_zoom_ratio(10.0)
self.object_style = None
@@ -194,7 +194,6 @@
def _request_size(self, item, prop):
self.set_size_request(int(self.layers.width), int(
self.layers.height))
- print self.layers.width, self.layers.height
self.set_bounds(0, 0, self.layers.width, self.layers.height)
return True
@@ -218,7 +217,10 @@
return 0
def zoomChanged(self):
- pass
+ ratio = self.getZoomRatio()
+ print ratio
+ for layer in self.layers:
+ layer.set_zoom_ratio(ratio)
def timelinePositionChanged(self, value, frame):
pass
@@ -320,7 +322,6 @@
self.topLayer.rightWidget.zoomChanged()
self.compositionLayers.zoomChanged()
-
## ToolBar callbacks
def toolBarZoomChangedCb(self, unused_toolbar, zoomratio):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]