summaryrefslogtreecommitdiffstats
path: root/debian/patches/libnm-client-proxy-_enabled-and-metered-properties-to-the.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/libnm-client-proxy-_enabled-and-metered-properties-to-the.patch')
-rw-r--r--debian/patches/libnm-client-proxy-_enabled-and-metered-properties-to-the.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/debian/patches/libnm-client-proxy-_enabled-and-metered-properties-to-the.patch b/debian/patches/libnm-client-proxy-_enabled-and-metered-properties-to-the.patch
new file mode 100644
index 0000000..5287b86
--- /dev/null
+++ b/debian/patches/libnm-client-proxy-_enabled-and-metered-properties-to-the.patch
@@ -0,0 +1,54 @@
+From: Lubomir Rintel <lkundrak@v3.sk>
+Date: Wed, 1 Nov 2017 21:29:39 +0100
+Subject: libnm/client: proxy *_enabled and metered properties to the right
+ object
+
+They're provided by the Manager, not by the RemoteSettings.
+
+(cherry picked from commit c81005b84650b8e6d709ce6afda96fb55987cdb8)
+(cherry picked from commit 34035ceee8e75d8cb7deb6f4aa211067bddcfe97)
+(cherry picked from commit b2af5f7ab676675a496adfa08541ecca43a9d9f8)
+---
+ libnm/nm-client.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/libnm/nm-client.c b/libnm/nm-client.c
+index 63eaa84..ba13347 100644
+--- a/libnm/nm-client.c
++++ b/libnm/nm-client.c
+@@ -2616,7 +2616,7 @@ get_property (GObject *object, guint prop_id,
+ break;
+ case PROP_WIRELESS_HARDWARE_ENABLED:
+ if (priv->manager)
+- g_object_get_property (G_OBJECT (priv->settings), pspec->name, value);
++ g_object_get_property (G_OBJECT (priv->manager), pspec->name, value);
+ else
+ g_value_set_boolean (value, FALSE);
+ break;
+@@ -2625,7 +2625,7 @@ get_property (GObject *object, guint prop_id,
+ break;
+ case PROP_WWAN_HARDWARE_ENABLED:
+ if (priv->manager)
+- g_object_get_property (G_OBJECT (priv->settings), pspec->name, value);
++ g_object_get_property (G_OBJECT (priv->manager), pspec->name, value);
+ else
+ g_value_set_boolean (value, FALSE);
+ break;
+@@ -2634,7 +2634,7 @@ get_property (GObject *object, guint prop_id,
+ break;
+ case PROP_WIMAX_HARDWARE_ENABLED:
+ if (priv->manager)
+- g_object_get_property (G_OBJECT (priv->settings), pspec->name, value);
++ g_object_get_property (G_OBJECT (priv->manager), pspec->name, value);
+ else
+ g_value_set_boolean (value, FALSE);
+ break;
+@@ -2655,7 +2655,7 @@ get_property (GObject *object, guint prop_id,
+ break;
+ case PROP_METERED:
+ if (priv->manager)
+- g_object_get_property (G_OBJECT (priv->settings), pspec->name, value);
++ g_object_get_property (G_OBJECT (priv->manager), pspec->name, value);
+ else
+ g_value_set_uint (value, NM_METERED_UNKNOWN);
+ break;