summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2021-10-12 17:31:42 +0200
committerMichael Catanzaro <mcatanzaro@redhat.com>2021-12-01 13:30:54 -0600
commit3bafff71d7588285763f603b23c830722a2169d1 (patch)
treeb74d263b6ff0ba6b43a187b313784622b924bf14
parent72291aac3dac7a8ed4c85eb41608f3f5f9ad7681 (diff)
downloadglib-3bafff71d7588285763f603b23c830722a2169d1.tar.gz
gnetworkmonitornm: Do not re-update cached property
GDBusProxy already takes care of updating the cached property before emitting the signal, so there is no need to do this a second time ourselves.
-rw-r--r--gio/gnetworkmonitornm.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gio/gnetworkmonitornm.c b/gio/gnetworkmonitornm.c
index 6a6d1d666..a8040fb36 100644
--- a/gio/gnetworkmonitornm.c
+++ b/gio/gnetworkmonitornm.c
@@ -253,33 +253,11 @@ sync_properties (GNetworkMonitorNM *nm,
}
static void
-update_cached_property (GDBusProxy *proxy,
- const char *property_name,
- GVariantDict *dict)
-{
- GVariant *v;
-
- v = g_variant_dict_lookup_value (dict, property_name, NULL);
- if (!v)
- return;
- g_dbus_proxy_set_cached_property (proxy, property_name, v);
- g_variant_unref (v);
-}
-
-static void
proxy_properties_changed_cb (GDBusProxy *proxy,
GVariant *changed_properties,
GStrv invalidated_properties,
GNetworkMonitorNM *nm)
{
- GVariantDict *dict;
-
- dict = g_variant_dict_new (changed_properties);
-
- update_cached_property (nm->priv->proxy, "Connectivity", dict);
-
- g_variant_dict_unref (dict);
-
sync_properties (nm, TRUE);
}