gnome-control-center/gnome-control-center-network-8021x-entry.patch
Dominique Leuenberger 1224cd2cca Accepting request 202467 from home:gary_lin:branches:GNOME:Factory
- Rebase gcc-private-connection.patch (bnc#751211)
- Add gnome-control-center-probe-radius-server-cert.patch to probe
  the certificate of the RADIUS server (bnc#574266)
- Add gnome-control-center-network-8021x-entry.patch to fix the
  8021x settings dialog (bgo#709545)

OBS-URL: https://build.opensuse.org/request/show/202467
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=220
2013-10-07 08:47:00 +00:00

51 lines
2.3 KiB
Diff

From fff5883cbff3505c9a82d0f5ed96efa0052f7865 Mon Sep 17 00:00:00 2001
From: Gary Ching-Pang Lin <chingpang@gmail.com>
Date: Mon, 7 Oct 2013 15:34:06 +0800
Subject: [PATCH] network: Use the parameters property for 8021x
The argv property was deprecated. This commit converts the 8021x
settings to the parameters property so that the user is able to
setup the 8021x connections.
https://bugzilla.gnome.org/show_bug.cgi?id=709545
---
panels/network/net-device-wifi.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 3f0d624..005cda6 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -757,19 +757,20 @@ wireless_try_to_connect (NetDeviceWifi *device_wifi,
connection_add_activate_cb, device_wifi);
} else {
CcNetworkPanel *panel;
- GPtrArray *array;
+ GVariantBuilder *builder;
+ GVariant *parameters;
g_debug ("no existing connection found for %s, creating", ssid_target);
- array = g_ptr_array_new ();
- g_ptr_array_add (array, "connect-8021x-wifi");
- g_ptr_array_add (array, (gpointer) nm_object_get_path (NM_OBJECT (device)));
- g_ptr_array_add (array, (gpointer) ap_object_path);
- g_ptr_array_add (array, NULL);
+ builder = g_variant_builder_new (G_VARIANT_TYPE ("av"));
+ g_variant_builder_add (builder, "v", g_variant_new_string ("connect-8021x-wifi"));
+ g_variant_builder_add (builder, "v", g_variant_new_string (nm_object_get_path (NM_OBJECT (device))));
+ g_variant_builder_add (builder, "v", g_variant_new_string (ap_object_path));
+ parameters = g_variant_new ("av", builder);
panel = net_object_get_panel (NET_OBJECT (device_wifi));
- g_object_set (G_OBJECT (panel), "argv", array->pdata, NULL);
+ g_object_set (G_OBJECT (panel), "parameters", parameters, NULL);
- g_ptr_array_free (array, FALSE);
+ g_variant_builder_unref (builder);
}
out:
return;
--
1.8.1.4