[pitivi] ui/timeline: disable updates while splitting.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui/timeline: disable updates while splitting.
- Date: Thu, 9 Sep 2010 15:01:08 +0000 (UTC)
commit feed379f9bdb40afa0f7f78708374cdc68d795cf
Author: Alessandro Decina <alessandro d gmail com>
Date: Thu Sep 9 15:13:51 2010 +0200
ui/timeline: disable updates while splitting.
This avoids creating a temporary transition while split() updates the
composition.
pitivi/ui/timeline.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 19e6eed..ee6e61d 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -652,7 +652,9 @@ class Timeline(gtk.Table, Loggable, Zoomable):
def split(self, action):
self.app.action_log.begin("split")
+ self.timeline.disableUpdates()
self.timeline.split(self._position)
+ self.timeline.enableUpdates()
self.app.action_log.commit()
# work-around for 603149
self.project.seeker.seek(self._position)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]