[gnome-control-center] network: Remove unused field
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Remove unused field
- Date: Tue, 22 Oct 2019 20:16:31 +0000 (UTC)
commit a41ad9067158c7ef68c807069ba72e21513fde23
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Oct 3 20:43:37 2019 +1300
network: Remove unused field
panels/network/wireless-security/wireless-security.c | 4 +---
panels/network/wireless-security/wireless-security.h | 4 +---
panels/network/wireless-security/ws-dynamic-wep.c | 3 +--
panels/network/wireless-security/ws-leap.c | 3 +--
panels/network/wireless-security/ws-wep-key.c | 3 +--
panels/network/wireless-security/ws-wpa-eap.c | 3 +--
panels/network/wireless-security/ws-wpa-psk.c | 3 +--
7 files changed, 7 insertions(+), 16 deletions(-)
---
diff --git a/panels/network/wireless-security/wireless-security.c
b/panels/network/wireless-security/wireless-security.c
index ec93db69c..5c5b90f0a 100644
--- a/panels/network/wireless-security/wireless-security.c
+++ b/panels/network/wireless-security/wireless-security.c
@@ -162,8 +162,7 @@ wireless_security_init (gsize obj_size,
WSUpdateSecretsFunc update_secrets,
WSDestroyFunc destroy,
const char *ui_resource,
- const char *ui_widget_name,
- const char *default_field)
+ const char *ui_widget_name)
{
g_autoptr(WirelessSecurity) sec = NULL;
g_autoptr(GError) error = NULL;
@@ -184,7 +183,6 @@ wireless_security_init (gsize obj_size,
sec->add_to_size_group = add_to_size_group;
sec->fill_connection = fill_connection;
sec->update_secrets = update_secrets;
- sec->default_field = default_field;
sec->builder = gtk_builder_new ();
if (!gtk_builder_add_from_resource (sec->builder, ui_resource, &error)) {
diff --git a/panels/network/wireless-security/wireless-security.h
b/panels/network/wireless-security/wireless-security.h
index aaeb685cd..bf468a5b9 100644
--- a/panels/network/wireless-security/wireless-security.h
+++ b/panels/network/wireless-security/wireless-security.h
@@ -45,7 +45,6 @@ struct _WirelessSecurity {
GtkWidget *ui_widget;
WSChangedFunc changed_notify;
gpointer changed_notify_data;
- const char *default_field;
gboolean adhoc_compatible;
gboolean hotspot_compatible;
@@ -112,8 +111,7 @@ WirelessSecurity *wireless_security_init (gsize obj_size,
WSUpdateSecretsFunc update_secrets,
WSDestroyFunc destroy,
const char *ui_resource,
- const char *ui_widget_name,
- const char *default_field);
+ const char *ui_widget_name);
void wireless_security_changed_cb (GtkWidget *entry, gpointer user_data);
diff --git a/panels/network/wireless-security/ws-dynamic-wep.c
b/panels/network/wireless-security/ws-dynamic-wep.c
index 3767e9706..567516303 100644
--- a/panels/network/wireless-security/ws-dynamic-wep.c
+++ b/panels/network/wireless-security/ws-dynamic-wep.c
@@ -110,8 +110,7 @@ ws_dynamic_wep_new (NMConnection *connection,
update_secrets,
destroy,
"/org/gnome/ControlCenter/network/ws-dynamic-wep.ui",
- "dynamic_wep_grid",
- NULL);
+ "dynamic_wep_grid")
if (!parent)
return NULL;
diff --git a/panels/network/wireless-security/ws-leap.c b/panels/network/wireless-security/ws-leap.c
index 17f2a53ec..6caaff1ff 100644
--- a/panels/network/wireless-security/ws-leap.c
+++ b/panels/network/wireless-security/ws-leap.c
@@ -155,8 +155,7 @@ ws_leap_new (NMConnection *connection, gboolean secrets_only)
update_secrets,
NULL,
"/org/gnome/ControlCenter/network/ws-leap.ui",
- "leap_grid",
- "leap_username_entry");
+ "leap_grid");
if (!parent)
return NULL;
diff --git a/panels/network/wireless-security/ws-wep-key.c b/panels/network/wireless-security/ws-wep-key.c
index d6f483e4a..11ea8ad9f 100644
--- a/panels/network/wireless-security/ws-wep-key.c
+++ b/panels/network/wireless-security/ws-wep-key.c
@@ -265,8 +265,7 @@ ws_wep_key_new (NMConnection *connection,
update_secrets,
destroy,
"/org/gnome/ControlCenter/network/ws-wep-key.ui",
- "wep_key_grid",
- "wep_key_entry");
+ "wep_key_grid");
if (!parent)
return NULL;
diff --git a/panels/network/wireless-security/ws-wpa-eap.c b/panels/network/wireless-security/ws-wpa-eap.c
index 71b7489b1..2cac54f6d 100644
--- a/panels/network/wireless-security/ws-wpa-eap.c
+++ b/panels/network/wireless-security/ws-wpa-eap.c
@@ -111,8 +111,7 @@ ws_wpa_eap_new (NMConnection *connection,
update_secrets,
destroy,
"/org/gnome/ControlCenter/network/ws-wpa-eap.ui",
- "wpa_eap_grid",
- NULL);
+ "wpa_eap_grid");
if (!parent)
return NULL;
diff --git a/panels/network/wireless-security/ws-wpa-psk.c b/panels/network/wireless-security/ws-wpa-psk.c
index 640eb8a6c..011c48529 100644
--- a/panels/network/wireless-security/ws-wpa-psk.c
+++ b/panels/network/wireless-security/ws-wpa-psk.c
@@ -183,8 +183,7 @@ ws_wpa_psk_new (NMConnection *connection, gboolean secrets_only)
update_secrets,
NULL,
"/org/gnome/ControlCenter/network/ws-wpa-psk.ui",
- "wpa_psk_grid",
- "wpa_psk_entry");
+ "wpa_psk_grid");
if (!parent)
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]