[pitivi] Add object-added and object-removed signals to Timeline.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Add object-added and object-removed signals to Timeline.
- Date: Thu, 11 Jun 2009 12:39:03 -0400 (EDT)
commit 3ee6a217483287ffb59e92dd93b20efeae95c40b
Author: Alessandro Decina <alessandro d gmail com>
Date: Wed Jun 10 13:37:06 2009 +0200
Add object-added and object-removed signals to Timeline.
pitivi/timeline/timeline.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 56d1daf..34b89d4 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -763,6 +763,8 @@ class Timeline(Signallable, Loggable):
"""
__signals__ = {
'duration-changed': ['duration'],
+ 'object-added': ['timeline_object'],
+ 'object-removed': ['timeline_object'],
'track-added': ['track'],
'track-removed': ['track'],
'selection-changed': [],
@@ -856,6 +858,8 @@ class Timeline(Signallable, Loggable):
self.edges.addTimelineObject(obj)
+ self.emit("object-added", obj)
+
def removeTimelineObject(self, obj, deep=False):
"""
Remove the given object from the Timeline.
@@ -883,6 +887,8 @@ class Timeline(Signallable, Loggable):
track = track_object.track
track.removeTrackObject(track_object)
+ self.emit("object-removed", obj)
+
# FIXME : shouldn't this be made more generic (i.e. not specific to source facotires) ?
def addSourceFactory(self, factory, stream_map=None, strict=False):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]