[pitivi: 3/5] ui.zoominterface: smooth out zooming at lower zoom levels



commit fbb36885f8776f3319e945852e195bbd766973f4
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Wed Apr 15 12:23:48 2009 -0700

    ui.zoominterface: smooth out zooming at lower zoom levels
---
 pitivi/ui/zoominterface.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pitivi/ui/zoominterface.py b/pitivi/ui/zoominterface.py
index 521f1e3..e7c01f9 100644
--- a/pitivi/ui/zoominterface.py
+++ b/pitivi/ui/zoominterface.py
@@ -49,11 +49,12 @@ import gst
 
 class Zoomable(object):
 
-    zoomratio = 10
     sigid = None
     _instances = []
-    zoom_levels = range(1, 150, 10)
+    zoom_levels = [1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5] + range(5, 10, 1) + \
+        range(10, 150, 10)
     _cur_zoom = 2
+    zoomratio = zoom_levels[_cur_zoom]
 
 
     def __init__(self):



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