[pitivi] timeline: Zoom-fit when rendering, to avoid generating a lot of thumbnails
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Zoom-fit when rendering, to avoid generating a lot of thumbnails
- Date: Tue, 27 Jan 2015 18:40:10 +0000 (UTC)
commit 97e97942e24a395325c4a3226eeb4f04c956c88f
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Dec 16 21:38:40 2014 +0100
timeline: Zoom-fit when rendering, to avoid generating a lot of thumbnails
pitivi/mainwindow.py | 2 +-
pitivi/render.py | 10 ++++------
2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index debd9e0..82f2750 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -197,7 +197,7 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
"""
from pitivi.render import RenderDialog
- dialog = RenderDialog(self.app, project)
+ dialog = RenderDialog(self.app, project, self.timeline_ui)
dialog.window.connect("destroy", self._renderDialogDestroyCb)
self.set_sensitive(False)
self.timeline_ui.disableKeyboardAndMouseEvents()
diff --git a/pitivi/render.py b/pitivi/render.py
index 931c9e6..6012f6d 100644
--- a/pitivi/render.py
+++ b/pitivi/render.py
@@ -325,7 +325,7 @@ class RenderDialog(Loggable):
_factory_formats = {}
- def __init__(self, app, project, pipeline=None):
+ def __init__(self, app, project, timeline_ui):
from pitivi.preset import RenderPresetManager
@@ -334,11 +334,8 @@ class RenderDialog(Loggable):
self.app = app
self.project = project
self.system = app.system
-
- if pipeline is not None:
- self._pipeline = pipeline
- else:
- self._pipeline = self.project.pipeline
+ self.timeline_ui = timeline_ui
+ self._pipeline = self.project.pipeline
self.outfile = None
self.notification = None
@@ -950,6 +947,7 @@ class RenderDialog(Loggable):
self._factory_formats[encoder_string] = fmt
break
+ self.timeline_ui.zoomFit()
self.project.set_rendering(True)
self._pipeline.set_render_settings(
self.outfile, self.project.container_profile)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]