[pitivi] Don't try to add Effects as Track Elements.
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Don't try to add Effects as Track Elements.
- Date: Wed, 24 Apr 2013 18:05:02 +0000 (UTC)
commit c8bca5db2b3f13e416f5d407abbdd438dea100e6
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Mon Apr 22 00:28:40 2013 +0200
Don't try to add Effects as Track Elements.
pitivi/timeline/timeline.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 3ad8985..e89fd8a 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -35,7 +35,7 @@ from pitivi.utils.widgets import ZoomBox
from ruler import ScaleRuler
from gettext import gettext as _
-from pitivi.utils.pipeline import Pipeline
+from pitivi.utils.pipeline import Pipeline, PipelineError
from elements import URISourceElement, TransitionElement, Ghostclip
from controls import ControlContainer
@@ -334,6 +334,8 @@ class TimelineStage(Clutter.ScrollActor, Zoomable):
self.add_child(self._snap_indicator)
def _addTimelineElement(self, track, bElement):
+ if isinstance(bElement, GES.Effect):
+ return
if isinstance(bElement.get_parent(), GES.TransitionClip):
element = TransitionElement(bElement, track, self)
element.set_z_position(0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]