[pitivi] timeline: Clarify what elements can be added to the timeline
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Clarify what elements can be added to the timeline
- Date: Fri, 28 Feb 2014 03:11:09 +0000 (UTC)
commit 19c8264308e8efcb0dae4ac793b2573325cb6e54
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat Jan 25 22:47:00 2014 +0100
timeline: Clarify what elements can be added to the timeline
pitivi/timeline/timeline.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index c68ea92..904e9a3 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -81,7 +81,7 @@ is prefixed with a little b, example : bTimeline
"""
-class TimelineStage(Clutter.ScrollActor, Zoomable):
+class TimelineStage(Clutter.ScrollActor, Zoomable, Loggable):
"""
The timeline view showing the clips.
"""
@@ -93,6 +93,7 @@ class TimelineStage(Clutter.ScrollActor, Zoomable):
def __init__(self, container, settings):
Clutter.ScrollActor.__init__(self)
Zoomable.__init__(self)
+ Loggable.__init__(self)
self.bTimeline = None
self._project = None
self.current_group = GES.Group()
@@ -391,9 +392,12 @@ class TimelineStage(Clutter.ScrollActor, Zoomable):
if isinstance(bElement, GES.Transition):
element = TransitionElement(bElement, track, self)
element.set_z_position(0)
- else:
+ elif isinstance(bElement, GES.Source):
element = URISourceElement(bElement, track, self)
element.set_z_position(-1)
+ else:
+ self.warning("Unknown element: %s", bElement)
+ return
bElement.connect("notify::start", self._elementStartChangedCb, element)
bElement.connect("notify::duration", self._elementDurationChangedCb, element)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]