[network-manager-applet] wireless-security: fix an initial sensitivity of "Show password" checkbox



commit 9aa77ea2ca2b0699f8a86e5c7c2a5c92a7256f48
Author: Jiří Klimeš <jklimes redhat com>
Date:   Fri Sep 11 23:09:44 2015 +0200

    wireless-security: fix an initial sensitivity of "Show password" checkbox
    
    It also fixes the strange error when clicking "Cancel" in the editor:
    (nm-connection-editor:13074): Gtk-CRITICAL **: gtk_event_controller_reset: assertion 
'GTK_IS_EVENT_CONTROLLER (controller)' failed
    
    12773                     gtk_event_controller_reset (data->controller);
    (gdb) p data
    $121 = (EventControllerData *) 0x1448c80
    (gdb) p *data
    $122 = {controller = 0x0, evmask_notify_id = 22028, grab_notify_id = 22029, sequence_state_changed_id = 
22030}
    
    It was invoked by
    Breakpoint 1, destroy (parent=0x103c600) at eap-method-ttls.c:46
    48          if (method->size_group)
    eap_method_unref (method=0x103c600) at eap-method.c:196
    199                         g_object_unref (method->ui_widget);

 src/wireless-security/eap-method-simple.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/wireless-security/eap-method-simple.c b/src/wireless-security/eap-method-simple.c
index b13062f..4044f48 100644
--- a/src/wireless-security/eap-method-simple.c
+++ b/src/wireless-security/eap-method-simple.c
@@ -232,6 +232,7 @@ set_userpass_ui (EAPMethodSimple *method)
                gtk_entry_set_text (method->password_entry, "");
 
        gtk_toggle_button_set_active (method->show_password, method->ws_parent->show_password);
+       password_storage_changed (NULL, NULL, method);
 }
 
 static void


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