[at-spi2-core: 19/47] set_id(): Use the implied bus connection
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 19/47] set_id(): Use the implied bus connection
- Date: Wed, 13 Jul 2022 03:08:27 +0000 (UTC)
commit d38d69b0507b738be818f0cc3976c968032528ae
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jul 8 18:09:01 2022 -0500
set_id(): Use the implied bus connection
registryd/registry.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/registryd/registry.c b/registryd/registry.c
index 14b43908..ea88e6c2 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -219,7 +219,7 @@ add_application (SpiRegistry *reg, const gchar *name, const gchar *path)
}
static void
-set_id (SpiRegistry *reg, DBusConnection *bus, const gchar *name, const gchar *path)
+set_id (SpiRegistry *reg, const gchar *name, const gchar *path)
{
DBusMessage *message;
DBusMessageIter iter, iter_variant;
@@ -238,7 +238,7 @@ set_id (SpiRegistry *reg, DBusConnection *bus, const gchar *name, const gchar *p
/* TODO: This will cause problems if we cycle through 2^31 ids */
reg->id++;
dbus_message_iter_close_container (&iter, &iter_variant);
- dbus_connection_send (bus, message, NULL);
+ dbus_connection_send (reg->bus, message, NULL);
dbus_message_unref (message);
}
@@ -438,7 +438,7 @@ impl_Embed (DBusMessage *message, void *user_data)
add_application (reg, app_name, obj_path);
- set_id (reg, reg->bus, app_name, obj_path);
+ set_id (reg, app_name, obj_path);
reply = dbus_message_new_method_return (message);
dbus_message_iter_init_append (reply, &reply_iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]