[gnome-control-center/gnome-3-8] network: properly namespace wireless security boxed types
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] network: properly namespace wireless security boxed types
- Date: Mon, 13 May 2013 19:43:32 +0000 (UTC)
commit 4d5257f46208fea9dc4c071b084d3ce2030abeeb
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun May 12 00:31:04 2013 +0200
network: properly namespace wireless security boxed types
These types appear with the same name in libnm-gtk, but they're
not shared because they come from different code, so they
need namespacing.
This prevents a crash that happens if you open a wifi property
dialog and then click "Connect to hidden network"
https://bugzilla.gnome.org/show_bug.cgi?id=700137
panels/network/wireless-security/eap-method.c | 2 +-
.../nm-connection-editor-to-network-panel.patch | 12 +++++++++++-
.../network/wireless-security/wireless-security.c | 2 +-
3 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/panels/network/wireless-security/eap-method.c b/panels/network/wireless-security/eap-method.c
index 8ff9778..7d3a06f 100644
--- a/panels/network/wireless-security/eap-method.c
+++ b/panels/network/wireless-security/eap-method.c
@@ -43,7 +43,7 @@ eap_method_get_g_type (void)
static GType type_id = 0;
if (!type_id) {
- type_id = g_boxed_type_register_static ("EAPMethod",
+ type_id = g_boxed_type_register_static ("CcEAPMethod",
(GBoxedCopyFunc) eap_method_ref,
(GBoxedFreeFunc) eap_method_unref);
}
diff --git a/panels/network/wireless-security/nm-connection-editor-to-network-panel.patch
b/panels/network/wireless-security/nm-connection-editor-to-network-panel.patch
index b680db7..ee77b30 100644
--- a/panels/network/wireless-security/nm-connection-editor-to-network-panel.patch
+++ b/panels/network/wireless-security/nm-connection-editor-to-network-panel.patch
@@ -1,5 +1,14 @@
--- /home/hadess/Projects/jhbuild/network-manager-applet/src/wireless-security/eap-method.c 2012-12-11
15:51:57.191216362 +0100
+++ eap-method.c 2013-01-09 17:58:22.167402957 +0100
+@@ -43,7 +43,7 @@
+ static GType type_id = 0;
+
+ if (!type_id) {
+- type_id = g_boxed_type_register_static ("EAPMethod",
++ type_id = g_boxed_type_register_static ("CcEAPMethod",
+ (GBoxedCopyFunc) eap_method_ref,
+ (GBoxedFreeFunc) eap_method_unref);
+ }
@@ -203,7 +203,7 @@ eap_method_nag_user (EAPMethod *method)
return method->nag_dialog;
}
@@ -150,7 +159,8 @@
if (!type_id) {
+ g_resources_register (wireless_security_get_resource ());
+
- type_id = g_boxed_type_register_static ("WirelessSecurity",
++ type_id = g_boxed_type_register_static ("CcWirelessSecurity",
+- type_id = g_boxed_type_register_static ("WirelessSecurity",
(GBoxedCopyFunc) wireless_security_ref,
(GBoxedFreeFunc) wireless_security_unref);
@@ -155,7 +158,7 @@ wireless_security_init (gsize obj_size,
diff --git a/panels/network/wireless-security/wireless-security.c
b/panels/network/wireless-security/wireless-security.c
index 42093ea..a8468bc 100644
--- a/panels/network/wireless-security/wireless-security.c
+++ b/panels/network/wireless-security/wireless-security.c
@@ -46,7 +46,7 @@ wireless_security_get_g_type (void)
if (!type_id) {
g_resources_register (wireless_security_get_resource ());
- type_id = g_boxed_type_register_static ("WirelessSecurity",
+ type_id = g_boxed_type_register_static ("CcWirelessSecurity",
(GBoxedCopyFunc) wireless_security_ref,
(GBoxedFreeFunc) wireless_security_unref);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]