[pitivi] timeline: Test directly the element, not its parent



commit fec4c369ee7acd06d708a76e9c09e2ca799795f8
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sat Jan 25 22:35:42 2014 +0100

    timeline: Test directly the element, not its parent

 pitivi/timeline/timeline.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index f618daa..c68ea92 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -388,7 +388,7 @@ class TimelineStage(Clutter.ScrollActor, Zoomable):
     def _addTimelineElement(self, track, bElement):
         if isinstance(bElement, GES.Effect):
             return
-        if isinstance(bElement.get_parent(), GES.TransitionClip):
+        if isinstance(bElement, GES.Transition):
             element = TransitionElement(bElement, track, self)
             element.set_z_position(0)
         else:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]