[pitivi] timeline: Make sure bestZoom is called when "Inserting to end"
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Make sure bestZoom is called when "Inserting to end"
- Date: Mon, 14 Jan 2013 12:38:34 +0000 (UTC)
commit 6a1703a543d56b3559af12d82fd5ec843395eb40
Author: Thibault Saunier <thibault saunier collabora com>
Date: Fri Dec 28 11:39:05 2012 -0300
timeline: Make sure bestZoom is called when "Inserting to end"
pitivi/timeline/timeline.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index efbbb93..2b371ff 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1851,6 +1851,7 @@ class Timeline(Gtk.Table, Loggable, Zoomable):
# first one
# Handle the case of a blank project
layer = self._ensureLayer()[0]
+ self.timeline.enable_update(False)
for asset in assets:
if asset.is_image():
clip_duration = long(long(self._settings.imageClipLength) * Gst.SECOND / 1000)
@@ -1859,3 +1860,4 @@ class Timeline(Gtk.Table, Loggable, Zoomable):
layer.add_asset(asset, self.timeline.props.duration,
0, clip_duration, 1.0, asset.get_supported_formats())
+ self.timeline.enable_update(True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]