[network-manager-applet: 4/6] wireless-security: disconnect all handlers upon EAPMethodLEAP destroy



commit 59b329a0fe1b929e12ef2bfa072ae1c141e9cc7b
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Thu Dec 22 18:10:55 2016 +0100

    wireless-security: disconnect all handlers upon EAPMethodLEAP destroy

 src/wireless-security/eap-method-leap.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/wireless-security/eap-method-leap.c b/src/wireless-security/eap-method-leap.c
index 2448df2..e4025a3 100644
--- a/src/wireless-security/eap-method-leap.c
+++ b/src/wireless-security/eap-method-leap.c
@@ -176,13 +176,11 @@ destroy (EAPMethod *parent)
 
        widget = GTK_WIDGET (gtk_builder_get_object (parent->builder, "eap_leap_notebook"));
        g_assert (widget);
+       g_signal_handlers_disconnect_by_data (widget, method);
 
-       g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
-                                             (GCallback) widgets_realized,
-                                             method);
-       g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
-                                             (GCallback) widgets_unrealized,
-                                             method);
+       g_signal_handlers_disconnect_by_data (method->username_entry, method->ws_parent);
+       g_signal_handlers_disconnect_by_data (method->password_entry, method->ws_parent);
+       g_signal_handlers_disconnect_by_data (method->show_password, method);
 }
 
 EAPMethodLEAP *


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