[pitivi: 1/6] ui/timeline: disable updates while adding clips to the timeline.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 1/6] ui/timeline: disable updates while adding clips to the timeline.
- Date: Sat, 11 Sep 2010 16:17:59 +0000 (UTC)
commit 255a1e1269c23b540052bf3fc2bb46f7313b708d
Author: Alessandro Decina <alessandro d gmail com>
Date: Fri Sep 10 13:25:38 2010 +0200
ui/timeline: disable updates while adding clips to the timeline.
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 ee6e61d..77a4c7d 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -423,12 +423,14 @@ class Timeline(gtk.Table, Loggable, Zoomable):
def _dragDropCb(self, widget, context, x, y, timestamp):
self.app.action_log.begin("add clip")
+ self.timeline.disableUpdates()
self._add_temp_source()
focus = self._temp_objects[0]
self._move_context = MoveContext(self.timeline,
focus, set(self._temp_objects[1:]))
self._move_temp_source(self.hadj.props.value + x, y)
self._move_context.finish()
+ self.timeline.enableUpdates()
self.app.action_log.commit()
context.drop_finish(True, timestamp)
self._factories = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]