#include "common/spi-dbus.h"
#include "object.h"
+#include "introspection.h"
static dbus_bool_t
impl_get_NSelectedChildren (DBusMessageIter * iter, void *user_data)
void *user_data)
{
AtkSelection *selection = (AtkSelection *) user_data;
+ DBusMessage *reply;
DBusError error;
dbus_int32_t selectedChildIndex;
AtkObject *atk_object;
return droute_invalid_arguments_error (message);
}
atk_object = atk_selection_ref_selection (selection, selectedChildIndex);
- return spi_object_return_reference (message, atk_object);
+ reply = spi_object_return_reference (message, atk_object);
+ g_object_unref (atk_object);
+
+ return reply;
}
static DBusMessage *
{
droute_path_add_interface (path,
SPI_DBUS_INTERFACE_SELECTION,
+ spi_org_a11y_atspi_Selection,
methods, properties);
};