[gnome-applets] window-buttons: disconnect signal handlers from active window



commit 8e39c6b43750f5899fa644e8c13c957e962955f3
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 10 17:01:40 2020 +0200

    window-buttons: disconnect signal handlers from active window
    
    https://gitlab.gnome.org/GNOME/gnome-applets/issues/6

 window-buttons/windowbuttons.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/window-buttons/windowbuttons.c b/window-buttons/windowbuttons.c
index acb53a283..ddcab9733 100755
--- a/window-buttons/windowbuttons.c
+++ b/window-buttons/windowbuttons.c
@@ -115,6 +115,16 @@ wb_applet_dispose (GObject *object)
       self->window_opened_id = 0;
     }
 
+  if (self->activewindow != NULL)
+    {
+      if (self->active_handler != 0)
+        {
+          g_signal_handler_disconnect (self->activewindow,
+                                       self->active_handler);
+          self->active_handler = 0;
+        }
+    }
+
   G_OBJECT_CLASS (wb_applet_parent_class)->dispose (object);
 }
 


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