Commit ec07eb1b authored by Thibault Saunier's avatar Thibault Saunier Committed by Alexandru Băluț

elements: Do not try to track the layer a clip is in

We have GES for that already!
parent 920faee6
......@@ -673,7 +673,6 @@ class Clip(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
self.handles = []
self.z_order = -1
self.layer = layer
self.timeline = layer.timeline
self.app = layer.app
......@@ -708,6 +707,10 @@ class Clip(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
self.drag_dest_set(0, [ui.EFFECT_TARGET_ENTRY], Gdk.DragAction.COPY)
self.connect("drag-drop", self.__dragDropCb)
@property
def layer(self):
return self.bClip.get_layer().ui
def __dragDropCb(self, unused_widget, context, x, y, timestamp):
success = False
......@@ -904,9 +907,6 @@ class Clip(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
def _layerChangedCb(self, bClip, unused_pspec):
self.updatePosition()
bLayer = bClip.props.layer
if bLayer:
self.layer = bLayer.ui
def __disconnectFromChild(self, child):
if child.ui:
......
......@@ -487,7 +487,6 @@ class Layer(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
def __childWidgetRemovedCb(self, layout, clip):
bClip = clip.bClip
bClip.ui.layer = None
if self.timeline.draggingElement is None:
bClip.ui.release()
bClip.ui = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment