[pitivi] timeline: Reuse the same zoom fit logic



commit 9006651c126b208959586070ebb012790bff9378
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Dec 16 21:32:32 2014 +0100

    timeline: Reuse the same zoom fit logic

 pitivi/timeline/timeline.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index e0d7012..d8ea45f 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1442,8 +1442,8 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
         self.log("Setting 'zoomed_fitted' to False")
         self.zoomed_fitted = False
 
-    def _zoomFitCb(self, unused, unused_2=None):
-        self._setBestZoomRatio(allow_zoom_in=True)
+    def _zoomFitCb(self, unused_action):
+        self.zoomFit()
 
     def _scrollEventCb(self, unused_embed, event):
         unused_res, delta_x, delta_y = event.get_scroll_deltas()


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