[at-spi2-core: 18/47] add_application(): Use the implied bus connection
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 18/47] add_application(): Use the implied bus connection
- Date: Wed, 13 Jul 2022 03:08:27 +0000 (UTC)
commit 2fe3e1a291af925dd7a33abe1f28aa3277138fa3
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jul 8 18:07:02 2022 -0500
add_application(): 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 46046114..14b43908 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -208,14 +208,14 @@ emit_event (DBusConnection *bus,
}
static void
-add_application (SpiRegistry *reg, DBusConnection *bus, const gchar *name, const gchar *path)
+add_application (SpiRegistry *reg, const gchar *name, const gchar *path)
{
gint index;
g_ptr_array_add (reg->apps, spi_reference_new (name, path));
index = reg->apps->len - 1;
- emit_event (bus, SPI_DBUS_INTERFACE_EVENT_OBJECT, "ChildrenChanged", "add", index, 0, name, path);
+ emit_event (reg->bus, SPI_DBUS_INTERFACE_EVENT_OBJECT, "ChildrenChanged", "add", index, 0, name, path);
}
static void
@@ -436,7 +436,7 @@ impl_Embed (DBusMessage *message, void *user_data)
goto error;
dbus_message_iter_get_basic (&iter_struct, &obj_path);
- add_application(reg, reg->bus, app_name, obj_path);
+ add_application (reg, app_name, obj_path);
set_id (reg, reg->bus, app_name, obj_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]