[pitivi: 10/16] timeline.py: TimelineObject.copy() now adds timeline objects to the copy with
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 10/16] timeline.py: TimelineObject.copy() now adds timeline objects to the copy with
- Date: Wed, 8 Jul 2009 14:37:46 +0000 (UTC)
commit 12b1a30974f081ed034910e98990480c1546a26c
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri Jul 3 17:39:49 2009 -0700
timeline.py: TimelineObject.copy() now adds timeline objects to the copy with
addTimlineObject(). This ensures that the timeline field is properly set and
that track-object-added is emitted.
git add -i FTW
pitivi/timeline/timeline.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 5550955..e90ea8f 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -103,8 +103,8 @@ class TimelineObject(Signallable, Loggable):
def copy(self):
cls = self.__class__
other = cls(self.factory)
- other.track_objects = [track_object.copy() for track_object in
- self.track_objects]
+ for track_object in self.track_objects:
+ other.addTrackObject(track_object.copy())
return other
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]