[gnome-control-center] network: Make EAP widgets not visible by default
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Make EAP widgets not visible by default
- Date: Wed, 27 Nov 2019 22:11:39 +0000 (UTC)
commit 748a5086406697b5310f72ad2eaea23ac18d155c
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Nov 11 11:24:07 2019 +1300
network: Make EAP widgets not visible by default
This makes them more consistent with other widgets.
panels/network/wireless-security/eap-method-fast.c | 1 +
panels/network/wireless-security/eap-method-fast.ui | 1 -
panels/network/wireless-security/eap-method-leap.ui | 1 -
panels/network/wireless-security/eap-method-peap.c | 1 +
panels/network/wireless-security/eap-method-peap.ui | 1 -
panels/network/wireless-security/eap-method-simple.ui | 1 -
panels/network/wireless-security/eap-method-tls.ui | 1 -
panels/network/wireless-security/eap-method-ttls.c | 1 +
panels/network/wireless-security/eap-method-ttls.ui | 1 -
panels/network/wireless-security/ws-dynamic-wep.c | 1 +
panels/network/wireless-security/ws-wpa-eap.c | 1 +
11 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/panels/network/wireless-security/eap-method-fast.c
b/panels/network/wireless-security/eap-method-fast.c
index a88d67e91..acb4b6f5b 100644
--- a/panels/network/wireless-security/eap-method-fast.c
+++ b/panels/network/wireless-security/eap-method-fast.c
@@ -197,6 +197,7 @@ inner_auth_combo_changed_cb (EAPMethodFAST *self)
gtk_widget_unparent (GTK_WIDGET (eap));
if (self->size_group)
eap_method_add_to_size_group (eap, self->size_group);
+ gtk_widget_show (GTK_WIDGET (eap));
gtk_container_add (GTK_CONTAINER (self->inner_auth_box), g_object_ref (GTK_WIDGET (eap)));
wireless_security_notify_changed (self->sec_parent);
diff --git a/panels/network/wireless-security/eap-method-fast.ui
b/panels/network/wireless-security/eap-method-fast.ui
index 28964b427..0a8963615 100644
--- a/panels/network/wireless-security/eap-method-fast.ui
+++ b/panels/network/wireless-security/eap-method-fast.ui
@@ -30,7 +30,6 @@
</data>
</object>
<template class="EAPMethodFAST" parent="GtkGrid">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="column_spacing">6</property>
diff --git a/panels/network/wireless-security/eap-method-leap.ui
b/panels/network/wireless-security/eap-method-leap.ui
index 4e289fba8..abb6ea442 100644
--- a/panels/network/wireless-security/eap-method-leap.ui
+++ b/panels/network/wireless-security/eap-method-leap.ui
@@ -2,7 +2,6 @@
<interface>
<requires lib="gtk+" version="3.4"/>
<template class="EAPMethodLEAP" parent="GtkGrid">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="column_spacing">6</property>
diff --git a/panels/network/wireless-security/eap-method-peap.c
b/panels/network/wireless-security/eap-method-peap.c
index 3b4353bb2..28e298e28 100644
--- a/panels/network/wireless-security/eap-method-peap.c
+++ b/panels/network/wireless-security/eap-method-peap.c
@@ -202,6 +202,7 @@ inner_auth_combo_changed_cb (EAPMethodPEAP *self)
gtk_widget_unparent (GTK_WIDGET (eap));
if (self->size_group)
eap_method_add_to_size_group (eap, self->size_group);
+ gtk_widget_show (GTK_WIDGET (eap));
gtk_container_add (GTK_CONTAINER (self->inner_auth_box), g_object_ref (GTK_WIDGET (eap)));
wireless_security_notify_changed (self->sec_parent);
diff --git a/panels/network/wireless-security/eap-method-peap.ui
b/panels/network/wireless-security/eap-method-peap.ui
index baa6c5cb6..364a9af91 100644
--- a/panels/network/wireless-security/eap-method-peap.ui
+++ b/panels/network/wireless-security/eap-method-peap.ui
@@ -30,7 +30,6 @@
</data>
</object>
<template class="EAPMethodPEAP" parent="GtkGrid">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
diff --git a/panels/network/wireless-security/eap-method-simple.ui
b/panels/network/wireless-security/eap-method-simple.ui
index 7a0a9a677..59691ba7b 100644
--- a/panels/network/wireless-security/eap-method-simple.ui
+++ b/panels/network/wireless-security/eap-method-simple.ui
@@ -2,7 +2,6 @@
<interface>
<requires lib="gtk+" version="3.4"/>
<template class="EAPMethodSimple" parent="GtkGrid">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="column_spacing">6</property>
diff --git a/panels/network/wireless-security/eap-method-tls.ui
b/panels/network/wireless-security/eap-method-tls.ui
index 28698f457..61f8e5d4d 100644
--- a/panels/network/wireless-security/eap-method-tls.ui
+++ b/panels/network/wireless-security/eap-method-tls.ui
@@ -2,7 +2,6 @@
<interface>
<requires lib="gtk+" version="3.4"/>
<template class="EAPMethodTLS" parent="GtkGrid">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="column_spacing">6</property>
diff --git a/panels/network/wireless-security/eap-method-ttls.c
b/panels/network/wireless-security/eap-method-ttls.c
index 67ba854a6..6fb07894e 100644
--- a/panels/network/wireless-security/eap-method-ttls.c
+++ b/panels/network/wireless-security/eap-method-ttls.c
@@ -193,6 +193,7 @@ inner_auth_combo_changed_cb (EAPMethodTTLS *self)
gtk_widget_unparent (GTK_WIDGET (eap));
if (self->size_group)
eap_method_add_to_size_group (eap, self->size_group);
+ gtk_widget_show (GTK_WIDGET (eap));
gtk_container_add (GTK_CONTAINER (self->inner_auth_box), g_object_ref (GTK_WIDGET (eap)));
wireless_security_notify_changed (self->sec_parent);
diff --git a/panels/network/wireless-security/eap-method-ttls.ui
b/panels/network/wireless-security/eap-method-ttls.ui
index e36fc8bb8..31978b9ae 100644
--- a/panels/network/wireless-security/eap-method-ttls.ui
+++ b/panels/network/wireless-security/eap-method-ttls.ui
@@ -13,7 +13,6 @@
</data>
</object>
<template class="EAPMethodTTLS" parent="GtkGrid">
- <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
diff --git a/panels/network/wireless-security/ws-dynamic-wep.c
b/panels/network/wireless-security/ws-dynamic-wep.c
index 1d1e2fc0a..923767c09 100644
--- a/panels/network/wireless-security/ws-dynamic-wep.c
+++ b/panels/network/wireless-security/ws-dynamic-wep.c
@@ -118,6 +118,7 @@ auth_combo_changed_cb (WirelessSecurityDynamicWEP *self)
gtk_widget_unparent (GTK_WIDGET (eap));
if (self->size_group)
eap_method_add_to_size_group (eap, self->size_group);
+ gtk_widget_show (GTK_WIDGET (eap));
gtk_container_add (GTK_CONTAINER (self->method_box), g_object_ref (GTK_WIDGET (eap)));
/* Refocus the EAP method's default widget */
diff --git a/panels/network/wireless-security/ws-wpa-eap.c b/panels/network/wireless-security/ws-wpa-eap.c
index f8fa7ff0d..3fb73834e 100644
--- a/panels/network/wireless-security/ws-wpa-eap.c
+++ b/panels/network/wireless-security/ws-wpa-eap.c
@@ -118,6 +118,7 @@ auth_combo_changed_cb (WirelessSecurityWPAEAP *self)
gtk_widget_unparent (GTK_WIDGET (eap));
if (self->size_group)
eap_method_add_to_size_group (eap, self->size_group);
+ gtk_widget_show (GTK_WIDGET (eap));
gtk_container_add (GTK_CONTAINER (self->method_box), g_object_ref (GTK_WIDGET (eap)));
/* Refocus the EAP method's default widget */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]