[pitivi] utils/undo: port to new Container get_children API.
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] utils/undo: port to new Container get_children API.
- Date: Thu, 11 Jul 2013 17:33:05 +0000 (UTC)
commit d65432dd50d2685aef232df630dda6fd9b439961
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Wed Jul 10 21:37:44 2013 +0200
utils/undo: port to new Container get_children API.
pitivi/undo/timeline.py | 6 +++---
pitivi/utils/timeline.py | 8 ++++----
pitivi/utils/widgets.py | 6 +++---
3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/pitivi/undo/timeline.py b/pitivi/undo/timeline.py
index 0fe6ed3..155c0ad 100644
--- a/pitivi/undo/timeline.py
+++ b/pitivi/undo/timeline.py
@@ -122,7 +122,7 @@ class ClipAdded(UndoableAction):
self.timeline = timeline
self.clip = clip
self.tracks = dict((track_element, track_element.get_track())
- for track_element in clip.get_children())
+ for track_element in clip.get_children(False))
def do(self):
for track_element, track in self.tracks.iteritems():
@@ -141,7 +141,7 @@ class ClipRemoved(UndoableAction):
self.timeline = timeline
self.clip = clip
self.tracks = dict((track_element, track_element.get_track())
- for track_element in clip.get_children())
+ for track_element in clip.get_children(False))
def do(self):
self.timeline.removeClip(self.clip, deep=True)
@@ -283,7 +283,7 @@ class TimelineLogObserver(object):
clip.connect("child-added", self._clipTrackElementAddedCb)
clip.connect("child-removed", self._clipTrackElementRemovedCb)
- for element in clip.get_children():
+ for element in clip.get_children(False):
self._connectToTrackElement(element)
def _disconnectFromClip(self, clip):
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index 3bea9ae..75f7eca 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -159,12 +159,12 @@ class Selection(Signallable):
self.last_single_obj = iter(selection).next()
for obj in old_selection - self.selected:
- for element in obj.get_children():
+ for element in obj.get_children(False):
if not isinstance(element, GES.BaseEffect) and not isinstance(element, GES.TextOverlay):
element.selected.selected = False
for obj in self.selected - old_selection:
- for element in obj.get_children():
+ for element in obj.get_children(False):
if not isinstance(element, GES.BaseEffect) and not isinstance(element, GES.TextOverlay):
element.selected.selected = True
@@ -176,7 +176,7 @@ class Selection(Signallable):
"""
objects = []
for clip in self.selected:
- objects.extend(clip.get_children())
+ objects.extend(clip.get_children(False))
return set(objects)
@@ -186,7 +186,7 @@ class Selection(Signallable):
"""
effects = []
for clip in self.selected:
- for element in clip.get_children():
+ for element in clip.get_children(False):
if isinstance(element, GES.BaseEffect):
effects.append(element)
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 556b88d..dcab7db 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -843,7 +843,7 @@ class GstElementSettingsWidget(Gtk.VBox, Loggable):
self._setKeyframeToggleButtonState(togglebutton, False)
effect = self.element
- for track_element in effect.get_parent().get_children():
+ for track_element in effect.get_parent().get_children(False):
if hasattr(track_element, "ui_element"):
track_element.ui_element.hideKeyframes()
@@ -1002,7 +1002,7 @@ class GstElementSettingsWidget(Gtk.VBox, Loggable):
effect = self.element
track_type = effect.get_track_type()
- for track_element in effect.get_parent().get_children():
+ for track_element in effect.get_parent().get_children(False):
if active and hasattr(track_element, "ui_element") and track_type ==
track_element.get_track_type():
track_element.ui_element.showKeyframes(effect, prop)
binding = self.element.get_control_binding(prop.name)
@@ -1018,7 +1018,7 @@ class GstElementSettingsWidget(Gtk.VBox, Loggable):
if binding:
effect = self.element
track_type = effect.get_track_type()
- for track_element in effect.get_parent().get_children():
+ for track_element in effect.get_parent().get_children(False):
if hasattr(track_element, "ui_element") and track_type == track_element.get_track_type():
binding.props.control_source.unset_all()
track_element.ui_element.updateKeyframes()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]