[at-spi2-core] registry: Use new signal form when sending events
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] registry: Use new signal form when sending events
- Date: Wed, 24 Nov 2021 21:46:35 +0000 (UTC)
commit 23874c226ea16b04d7b06a36fad6d50a395aaba3
Author: Mike Gorse <mgorse suse com>
Date: Wed Nov 24 15:45:38 2021 -0600
registry: Use new signal form when sending events
registryd/registry.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/registryd/registry.c b/registryd/registry.c
index 8d35f8ee..bfa3a317 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -1056,7 +1056,7 @@ emit_event (DBusConnection *bus,
const char *path)
{
DBusMessage *sig;
- DBusMessageIter iter, iter_variant;
+ DBusMessageIter iter, iter_variant, iter_array;
sig = dbus_message_new_signal(SPI_DBUS_PATH_ROOT, klass, major);
@@ -1071,9 +1071,9 @@ emit_event (DBusConnection *bus,
append_reference (&iter_variant, name, path);
dbus_message_iter_close_container (&iter, &iter_variant);
- append_reference (&iter,
- dbus_bus_get_unique_name (bus),
- SPI_DBUS_PATH_ROOT);
+ dbus_message_iter_open_container (&iter, DBUS_TYPE_ARRAY, "{sv}",
+ &iter_array);
+ dbus_message_iter_close_container (&iter, &iter_array);
dbus_connection_send(bus, sig, NULL);
dbus_message_unref(sig);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]