summaryrefslogtreecommitdiff
path: root/gio/gdbusproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/gdbusproxy.c')
-rw-r--r--gio/gdbusproxy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index 7a2289bd4..9a9b35225 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -1694,6 +1694,10 @@ static void
async_initable_init_first (GAsyncInitable *initable)
{
GDBusProxy *proxy = G_DBUS_PROXY (initable);
+ GDBusSignalFlags signal_flags = G_DBUS_SIGNAL_FLAGS_NONE;
+
+ if (proxy->priv->flags & G_DBUS_PROXY_FLAGS_NO_MATCH_RULE)
+ signal_flags |= G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE;
if (!(proxy->priv->flags & G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES))
{
@@ -1705,7 +1709,7 @@ async_initable_init_first (GAsyncInitable *initable)
"PropertiesChanged",
proxy->priv->object_path,
proxy->priv->interface_name,
- G_DBUS_SIGNAL_FLAGS_NONE,
+ signal_flags,
on_properties_changed,
weak_ref_new (G_OBJECT (proxy)),
(GDestroyNotify) weak_ref_free);
@@ -1721,7 +1725,7 @@ async_initable_init_first (GAsyncInitable *initable)
NULL, /* member */
proxy->priv->object_path,
NULL, /* arg0 */
- G_DBUS_SIGNAL_FLAGS_NONE,
+ signal_flags,
on_signal_received,
weak_ref_new (G_OBJECT (proxy)),
(GDestroyNotify) weak_ref_free);
@@ -1737,7 +1741,7 @@ async_initable_init_first (GAsyncInitable *initable)
"NameOwnerChanged", /* signal name */
"/org/freedesktop/DBus", /* path */
proxy->priv->name, /* arg0 */
- G_DBUS_SIGNAL_FLAGS_NONE,
+ signal_flags,
on_name_owner_changed,
weak_ref_new (G_OBJECT (proxy)),
(GDestroyNotify) weak_ref_free);