[network-manager-applet/bg/editor-misc: 1/2] editor: show() the 8021x-security page, not its children




commit bf6b33bbe20f3680ee9cac2d936dd2bbdc139bff
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Tue Nov 17 18:13:33 2020 +0100

    editor: show() the 8021x-security page, not its children
    
    During the construction of the security widget, some child widgets are
    set as hidden because they should never appear (for example, the
    private key passphrase entry for EAP-MD5). gtk_widget_show_all()
    wrongly displays them again. Use gtk_widget_show() instead.
    
    Fixes: 9b5c5eed6aa6 ("Revert '8021x-security: don't show_all() the widgets'")

 src/connection-editor/page-8021x-security.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/connection-editor/page-8021x-security.c b/src/connection-editor/page-8021x-security.c
index 3fe3d6296..5f2d3be94 100644
--- a/src/connection-editor/page-8021x-security.c
+++ b/src/connection-editor/page-8021x-security.c
@@ -74,7 +74,7 @@ finish_setup (CEPage8021xSecurity *self, gpointer user_data)
 
        gtk_box_pack_start (GTK_BOX (parent->page), GTK_WIDGET (priv->enabled), FALSE, TRUE, 12);
        gtk_box_pack_start (GTK_BOX (parent->page), priv->security_widget, TRUE, TRUE, 0);
-       gtk_widget_show_all (parent->page);
+       gtk_widget_show (parent->page);
 }
 
 CEPage *


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