[network-manager-applet/thaller/wireless-security-fixes: 1/2] editor: don't remove unsubscribed handlers in eap-method-leap/eap-method-simple



commit 120dea020dde8ff60a36581d339631f58867263d
Author: Thomas Haller <thaller redhat com>
Date:   Thu Sep 12 10:55:55 2013 +0200

    editor: don't remove unsubscribed handlers in eap-method-leap/eap-method-simple
    
    During destroy of the security dialogs EAPMethodSimple and
    EAPMethodLEAP, the handlers are unsubscribed from the widget.
    
    Remove the unsubscription of 'wireless_security_changed_cb', because
    this function is actually never subscribed to the widget.
    
    Signed-off-by: Thomas Haller <thaller redhat com>

 src/wireless-security/eap-method-leap.c   |    3 ---
 src/wireless-security/eap-method-simple.c |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/wireless-security/eap-method-leap.c b/src/wireless-security/eap-method-leap.c
index 12e11c1..ad5d369 100644
--- a/src/wireless-security/eap-method-leap.c
+++ b/src/wireless-security/eap-method-leap.c
@@ -162,9 +162,6 @@ destroy (EAPMethod *parent)
        g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
                                              (GCallback) widgets_unrealized,
                                              method);
-       g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
-                                             (GCallback) wireless_security_changed_cb,
-                                             method->ws_parent);
 
        wireless_security_unref (method->ws_parent);
 }
diff --git a/src/wireless-security/eap-method-simple.c b/src/wireless-security/eap-method-simple.c
index 401eeb2..c706854 100644
--- a/src/wireless-security/eap-method-simple.c
+++ b/src/wireless-security/eap-method-simple.c
@@ -266,9 +266,6 @@ destroy (EAPMethod *parent)
        g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
                                              (GCallback) widgets_unrealized,
                                              method);
-       g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
-                                             (GCallback) wireless_security_changed_cb,
-                                             method->ws_parent);
 
        wireless_security_unref (method->ws_parent);
 }


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