summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2013-02-07 14:40:31 -0300
committerMarcel Holtmann <marcel@holtmann.org>2013-02-15 01:05:22 +0100
commit1ff371fe441fe3f3f081077c6b6f203c76f54f3a (patch)
tree1e9c5ad6138cc0a0cb2a35e8803203eabd059f8a
parenta2bb77d351456cfcc6348628ad843aa402e258c3 (diff)
downloadneard-1ff371fe441fe3f3f081077c6b6f203c76f54f3a.tar.gz
neard-1ff371fe441fe3f3f081077c6b6f203c76f54f3a.tar.bz2
neard-1ff371fe441fe3f3f081077c6b6f203c76f54f3a.zip
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.c7
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);