[pitivi] Can't get track_type with track.props.track_type anymore. GI breakage.
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Can't get track_type with track.props.track_type anymore. GI breakage.
- Date: Sun, 2 Sep 2012 04:02:25 +0000 (UTC)
commit de46fb2699063b2504d8d6dd2dff802aa6026b13
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Sat Aug 11 01:19:27 2012 +0200
Can't get track_type with track.props.track_type anymore. GI breakage.
pitivi/clipproperties.py | 12 ++++++------
pitivi/timeline/timeline.py | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 88f0228..3edb98f 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -56,10 +56,10 @@ class ClipPropertiesError(Exception):
def compare_type(track, effect_type):
- if track.props.track_type == ges.TRACK_TYPE_AUDIO and \
+ if track.get_property("track_type") == ges.TRACK_TYPE_AUDIO and \
effect_type == AUDIO_EFFECT:
return True
- elif track.props.track_type == ges.TRACK_TYPE_VIDEO and \
+ elif track.get_property("track_type") == ges.TRACK_TYPE_VIDEO and \
effect_type == VIDEO_EFFECT:
return True
return False
@@ -353,9 +353,9 @@ class EffectProperties(gtk.Expander, gtk.HBox):
# Which means, it has the corresponding media_type
for tckobj in tlobj.get_track_objects():
track = tckobj.get_track()
- if track.props.track_type == ges.TRACK_TYPE_AUDIO and \
+ if track.get_property("track_type") == ges.TRACK_TYPE_AUDIO and \
media_type == AUDIO_EFFECT or \
- track.props.track_type == ges.TRACK_TYPE_VIDEO and \
+ track.get_property("track_type") == ges.TRACK_TYPE_VIDEO and \
media_type == VIDEO_EFFECT:
#Actually add the effect
self.app.action_log.begin("add effect")
@@ -436,9 +436,9 @@ class EffectProperties(gtk.Expander, gtk.HBox):
track_effect.props.bin_description)
to_append = [track_effect.props.active]
track = track_effect.get_track()
- if track.props.track_type == ges.TRACK_TYPE_AUDIO:
+ if track.get_property("track_type") == ges.TRACK_TYPE_AUDIO:
to_append.append("Audio")
- elif track.props.track_type == ges.TRACK_TYPE_VIDEO:
+ elif track.get_property("track_type") == ges.TRACK_TYPE_VIDEO:
to_append.append("Video")
to_append.append(track_effect.props.bin_description)
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index f270269..2552de0 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1265,9 +1265,9 @@ class Timeline(gtk.Table, Loggable, Zoomable):
# Which means, it has the corresponding media_type
for tckobj in tlobj.get_track_objects():
track = tckobj.get_track()
- if track.props.track_type == ges.TRACK_TYPE_AUDIO and \
+ if track.get_property("track_type") == ges.TRACK_TYPE_AUDIO and \
media_type == AUDIO_EFFECT or \
- track.props.track_type == ges.TRACK_TYPE_VIDEO and \
+ track.get_property("track_type") == ges.TRACK_TYPE_VIDEO and \
media_type == VIDEO_EFFECT:
#Actually add the effect
self.app.action_log.begin("add effect")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]