[pitivi] Start the alignment when the button is pressed
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Start the alignment when the button is pressed
- Date: Thu, 30 May 2013 20:46:25 +0000 (UTC)
commit 8b8eae9ee3b6a08fbda9c56ddd2720953a298aec
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed May 22 02:13:42 2013 +0200
Start the alignment when the button is pressed
pitivi/timeline/timeline.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 407172d..c5acd9f 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -28,7 +28,7 @@ GtkClutter.init([])
from gi.repository import Gst, GES, GObject, Clutter, Gtk, GLib, Gdk
-from pitivi.autoaligner import AlignmentProgressDialog
+from pitivi.autoaligner import AlignmentProgressDialog, AutoAligner
from pitivi.check import missing_soft_deps
from pitivi.utils.timeline import Zoomable, Selection, UNSELECT
from pitivi.settings import GlobalSettings
@@ -977,9 +977,9 @@ class Timeline(Gtk.VBox, Zoomable):
self.app.action_log.commit()
progress_dialog.window.destroy()
- pmeter = self.timeline.alignSelection(alignedCb)
-
- pmeter.addWatcher(progress_dialog.updatePosition)
+ auto_aligner = AutoAligner(self.timeline.selection, alignedCb)
+ progress_meter = auto_aligner.start()
+ progress_meter.addWatcher(progress_dialog.updatePosition)
def _split(self, action):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]