[pitivi] project/timeline: Port to new Track API
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] project/timeline: Port to new Track API
- Date: Sun, 23 Jun 2013 22:48:09 +0000 (UTC)
commit ba7b2dadc2fdf06a28f57b3cf664c5894d34a781
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Thu May 16 03:59:26 2013 +0200
project/timeline: Port to new Track API
pitivi/project.py | 4 ++--
pitivi/timeline/timeline.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 9c8de38..146bae9 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -939,9 +939,9 @@ class Project(Loggable, GES.Project):
for track in self.timeline.get_tracks()]
if GES.TrackType.VIDEO not in track_types:
- self.timeline.add_track(GES.Track.video_raw_new())
+ self.timeline.add_track(GES.VideoTrack.new())
if GES.TrackType.AUDIO not in track_types:
- self.timeline.add_track(GES.Track.audio_raw_new())
+ self.timeline.add_track(GES.AudioTrack.new())
def _ensureLayer(self):
if self.timeline is None:
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 95048c5..00e7cd1 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1305,8 +1305,8 @@ class Timeline(Gtk.VBox, Zoomable):
self.project = GES.Project(uri=None, extractable_type=GES.Timeline)
bTimeline = GES.Timeline()
- bTimeline.add_track(GES.Track.audio_raw_new())
- bTimeline.add_track(GES.Track.video_raw_new())
+ bTimeline.add_track(GES.AudioTrack.new())
+ bTimeline.add_track(GES.VideoTrack.new())
self.bTimeline = bTimeline
timeline.setTimeline(bTimeline)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]