[pitivi] layer: Remove obsolete layer removal logic when empty



commit 189796e347d1086bed36f90000f83711be1128f8
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Jun 8 06:14:09 2016 +0200

    layer: Remove obsolete layer removal logic when empty
    
    Differential Revision: https://phabricator.freedesktop.org/D1074

 pitivi/timeline/layer.py    |    4 ----
 pitivi/timeline/timeline.py |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index a3fbb8a..3e7f975 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -352,10 +352,6 @@ class Layer(Gtk.EventBox, Zoomable, Loggable):
 
     __gtype_name__ = "PitiviLayer"
 
-    __gsignals__ = {
-        "remove-me": (GObject.SignalFlags.RUN_LAST, None, (),)
-    }
-
     def __init__(self, ges_layer, timeline):
         Gtk.EventBox.__init__(self)
         Zoomable.__init__(self)
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 3a86172..6e1f821 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -893,7 +893,6 @@ class Timeline(Gtk.EventBox, Zoomable, Loggable):
         layer = Layer(ges_layer, self)
         ges_layer.ui = layer
         self._layers.append(layer)
-        layer.connect("remove-me", self._removeLayerCb)
 
         control = LayerControls(ges_layer, self.app)
         control.show_all()
@@ -912,9 +911,6 @@ class Timeline(Gtk.EventBox, Zoomable, Loggable):
 
         ges_layer.connect("notify::priority", self.__layerPriorityChangedCb)
 
-    def _removeLayerCb(self, layer):
-        self.ges_timeline.remove_layer(layer.ges_layer)
-
     def __layerPriorityChangedCb(self, ges_layer, pspec):
         self.__update_layers()
 


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