[pitivi] Zoom fit when needed
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Zoom fit when needed
- Date: Wed, 24 Apr 2013 18:04:37 +0000 (UTC)
commit bb4239a12581ed2793a8d3effb001a59dabd39ae
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Sun Apr 21 22:22:19 2013 +0200
Zoom fit when needed
pitivi/timeline/timeline.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 5032a3f..9c328c5 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -571,6 +571,8 @@ class Timeline(Gtk.VBox, Zoomable):
layer.add_clip(asset)
self.bTimeline.enable_update(True)
+ if self.zoomed_fitted:
+ self._setBestZoomRatio()
def setProjectManager(self, projectmanager):
if self._projectmanager is not None:
@@ -665,6 +667,8 @@ class Timeline(Gtk.VBox, Zoomable):
self.scrolled = 0
+ self.zoomed_fitted = True
+
self._packScrollbars(self)
self.stage.show()
@@ -1170,6 +1174,8 @@ class Timeline(Gtk.VBox, Zoomable):
if self.isDraggedClip:
self.timeline.convertGhostClips()
self.timeline.resetGhostClips()
+ if self.zoomed_fitted:
+ self._setBestZoomRatio()
else:
actor = self.stage.get_actor_at_pos(Clutter.PickMode.ALL, x, y)
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]