Diff between 3f72b45150a50c99f344bbcfb4e19e360b85555f and 19448b9cb852b8c38f15362e185e6b18d634859d
Changed Files
| File | Additions | Deletions | Status |
| gdbus/object.c | +6 | -0 | modified |
Full Patch
diff --git a/gdbus/object.c b/gdbus/object.c
index 50a8b4f..f7c8c2b 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -551,6 +551,12 @@ static void emit_interfaces_added(struct generic_data *data)
if (root == NULL || data == root)
return;
+ /* Emit InterfacesAdded on the parent first so it appears first on the
+ * bus as child objects may point to it.
+ */
+ if (data->parent && data->parent->added)
+ emit_interfaces_added(data->parent);
+
signal = dbus_message_new_signal(root->path,
DBUS_INTERFACE_OBJECT_MANAGER,
"InterfacesAdded");