From f93a6a2d06617ef54b1ecd38800bbef541a1502b Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Thu, 7 Feb 2013 14:40:31 -0300 Subject: 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. --- gdbus/object.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gdbus') diff --git a/gdbus/object.c b/gdbus/object.c index 0c112465..43fb1f06 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); -- cgit v1.2.3