[pitivi] editorperspective: Let signals disconnect automatically



commit 9c41985960c1355416cf680c48f9091df6e154c7
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Nov 19 23:15:21 2018 +0100

    editorperspective: Let signals disconnect automatically
    
    The signals connected by self.builder are all for the main menu.
    They are disconnected automatically when the objects are destroyed.

 pitivi/editorperspective.py | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/pitivi/editorperspective.py b/pitivi/editorperspective.py
index a3a3a38f..998ea185 100644
--- a/pitivi/editorperspective.py
+++ b/pitivi/editorperspective.py
@@ -87,7 +87,6 @@ class EditorPerspective(Perspective, Loggable):
         self.app = app
         self.settings = app.settings
 
-        self.builder_handler_ids = []
         self.builder = Gtk.Builder()
 
         pm = self.app.project_manager
@@ -318,9 +317,6 @@ class EditorPerspective(Perspective, Loggable):
         self.builder.add_from_file(
             os.path.join(get_ui_dir(), "mainmenubutton.ui"))
 
-        # FIXME : see https://bugzilla.gnome.org/show_bug.cgi?id=729263
-        self.builder.connect_signals_full(self._builderConnectCb, self)
-
         self.menu_button = self.builder.get_object("menubutton")
 
         self._menubutton_items = {}
@@ -390,11 +386,6 @@ class EditorPerspective(Perspective, Loggable):
         self.save_action.set_enabled(True)
         self.updateTitle()
 
-    def _builderConnectCb(self, builder, gobject, signal_name, handler_name,
-                          connect_object, flags, user_data):
-        id_ = gobject.connect(signal_name, getattr(self, handler_name))
-        self.builder_handler_ids.append((gobject, id_))
-
 # Toolbar/Menu actions callback
 
     def __close_project_cb(self, unused_button):


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