diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2013-02-07 14:40:31 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-02-14 15:18:54 +0100 |
commit | 0b7e9580351d74e45e03f18096120f44c328e11b (patch) | |
tree | 6c52b6e84a1a4c01fecad5f1582d53cc8ab196fc | |
parent | 5af68abcce6794d092abcbe18d5c5c50e9d0c9bf (diff) | |
download | pacrunner-0b7e9580351d74e45e03f18096120f44c328e11b.tar.gz |
gdbus: Fix missing PropertiesChanged signal
If D-Bus ObjectManager is not supported, InterfacesAdded signal
checking needs to be ignored otherwise PropertiesChanged signal
will never be sent.
-rw-r--r-- | gdbus/object.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdbus/object.c b/gdbus/object.c index 0c11246..43fb1f0 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -1701,8 +1701,11 @@ void g_dbus_emit_property_changed(DBusConnection *connection, if (iface == NULL) return; - /* Don't emit property changed if interface is not yet published */ - if (g_slist_find(data->added, iface)) + /* + * If ObjectManager is attached, don't emit property changed if + * interface is not yet published + */ + if (root && g_slist_find(data->added, iface)) return; property = find_property(iface->properties, name); |