[pitivi] Always have the correct number of effects playing in the composition
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Always have the correct number of effects playing in the composition
- Date: Wed, 22 Sep 2010 13:42:31 +0000 (UTC)
commit 0679d026b8e0725afec409269df7177a76758496
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Jul 19 15:05:33 2010 -0400
Always have the correct number of effects playing in the composition
pitivi/ui/timeline.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 516a23a..2cf7b8c 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -412,9 +412,11 @@ class Timeline(gtk.Table, Loggable, Zoomable):
## Drag and Drop callbacks
def _dragMotionCb(self, unused, context, x, y, timestamp):
- self.warning("self._factories:%r, self._temp_objects:%r",
+ self.warning("self._factories:%r, self._temp_objects:%r, \
+ self._temp_effect %r",
not not self._factories,
- not not self._temp_objects)
+ not not self._temp_objects,
+ not not self._temp_effect)
if self._factories is None:
if context.targets in DND_EFFECT_LIST:
@@ -435,6 +437,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
if self.timeline.getObjsToAddEffectTo(self.pixelToNs(x), priority) != tmp_timeline_objs:
for timeline_obj, track_obj in self._temp_effect:
timeline_obj.removeTrackObject(track_obj)
+ track_obj.track.removeTrackObject(track_obj)
self._addEffect(x, y, context.targets)
else:
self._addEffect(x, y, context.targets)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]