[pitivi] utils/timeline: remove unneeded parameter "other".



commit 1158908f3207b82a11a2d8176dadfbc69407a925
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date:   Mon Jul 15 03:10:33 2013 +0200

    utils/timeline: remove unneeded parameter "other".
    
        + timeline/elements: And remove it in the instantiation of course.

 pitivi/timeline/elements.py |    2 --
 pitivi/utils/timeline.py    |   10 +---------
 2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index cb42793..6eb075c 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -297,7 +297,6 @@ class TrimHandle(Clutter.Texture):
                                        self.timelineElement.timeline.bTimeline,
                                        GES.EditMode.EDIT_TRIM,
                                        edge,
-                                       set([]),
                                        None)
 
         self._context.connect("clip-trim", self.clipTrimCb)
@@ -1030,7 +1029,6 @@ class URISourceElement(TimelineElement):
                                        self.timeline.bTimeline,
                                        mode,
                                        GES.Edge.EDGE_NONE,
-                                       self.timeline.selection.getSelectedTrackElements(),
                                        None)
         # This can't change during a drag, so we can safely compute it now for drag events.
         nbrLayers = len(self.timeline.bTimeline.get_layers())
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index 75f7eca..72cdb56 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -213,7 +213,7 @@ class EditingContext(Signallable):
         "clip-trim-finished": [],
     }
 
-    def __init__(self, focus, timeline, mode, edge, other, settings):
+    def __init__(self, focus, timeline, mode, edge, settings):
         """
         @param focus: the Clip or TrackElement which is to be the
         main target of interactive editing, such as the object directly under the
@@ -231,10 +231,6 @@ class EditingContext(Signallable):
         can be change during the time using the same context.
         @type mode: L{GES.EditMode}
 
-        @param other: a set of objects which are the secondary targets of
-        interactive editing, such as objects in the current selection.
-        @type other: a set() of L{Clip}s or L{TrackElement}s
-
         @param setting: The PiTiVi settings, used to get the snap_distance
         parametter
 
@@ -242,10 +238,6 @@ class EditingContext(Signallable):
         """
         Signallable.__init__(self)
 
-        # make sure focus is not in secondary object list
-        other.difference_update(set((focus,)))
-
-        self.other = other
         if isinstance(focus, GES.TrackElement):
             self.focus = focus.get_parent()
         else:


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