[pitivi/ges] track: Make it Loggable and minor cleanups



commit f0aab708e31b06f5b283ea2fb37b44218fa2be0c
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Thu Mar 29 19:03:15 2012 -0400

    track: Make it Loggable and minor cleanups

 pitivi/timeline/timeline.py |    1 -
 pitivi/timeline/track.py    |    8 ++------
 2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index f36229a..e51fa08 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1013,7 +1013,6 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         priority = int((y // (LAYER_HEIGHT_EXPANDED + LAYER_SPACING)))
         delta = Zoomable.pixelToNs(x)
         obj = self._temp_objects[0]
-        obj.starting_start = obj.props.start
         self._move_context.editTo(delta, priority)
 
 ## Zooming and Scrolling
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index fb421e8..41c7e2a 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -315,7 +315,7 @@ class EndHandle(TrimHandle):
             self._view.app.gui.viewer.clipTrimPreviewFinished()
 
 
-class TrackObject(View, goocanvas.Group, Zoomable):
+class TrackObject(View, goocanvas.Group, Zoomable, Loggable):
 
     class Controller(TrackObjectController):
 
@@ -358,6 +358,7 @@ class TrackObject(View, goocanvas.Group, Zoomable):
         goocanvas.Group.__init__(self)
         View.__init__(self, instance)
         Zoomable.__init__(self)
+        Loggable.__init__(self)
         self.ref = Zoomable.nsToPixel(10000000000)
         self.app = instance
         self.track = track
@@ -393,14 +394,9 @@ class TrackObject(View, goocanvas.Group, Zoomable):
             height=self.height)
 
         self.element = element
-        element.max_duration = element.props.duration
-        element.starting_start = element.props.start
         element.selected = Selected()
         element.selected.connect("selected-changed", self.selectedChangedCb)
-
         obj = self.element.get_timeline_object()
-        obj.starting_start = obj.get_property("start")
-        obj.max_duration = obj.props.duration
 
         self.settings = instance.settings
         self.unfocus()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]