[pitivi] clipproperties: port to new GES.Container get_children API



commit 05cef86bcb081805b3f38d49cf36f51989db69b8
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date:   Sun Jul 14 21:45:58 2013 +0200

    clipproperties: port to new GES.Container get_children API

 pitivi/clipproperties.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 00092f6..1f477d7 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -325,7 +325,7 @@ class EffectProperties(Gtk.Expander, Loggable):
     def addEffectToClip(self, clip, bin_desc):
         media_type = self.app.effects.getFactoryFromName(bin_desc).media_type
 
-        for track_element in clip.get_children():
+        for track_element in clip.get_children(False):
             track_type = track_element.get_track_type()
             if track_type == GES.TrackType.AUDIO and media_type == AUDIO_EFFECT or \
                     track_type == GES.TrackType.VIDEO and media_type == VIDEO_EFFECT:
@@ -589,7 +589,7 @@ class TransformationProperties(Gtk.Expander):
         self.app.current.pipeline.flushSeek()
 
     def _findEffect(self, name):
-        for effect in self._selected_clip.get_children():
+        for effect in self._selected_clip.get_children(False):
             if isinstance(effect, GES.BaseEffect):
                 if name in effect.get_property("bin-description"):
                     self.effect = effect


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