static AtkComponent *
get_component (DBusMessage * message)
{
- AtkObject *obj = spi_dbus_get_object (dbus_message_get_path (message));
+ AtkObject *obj = atk_dbus_get_object (dbus_message_get_path (message));
if (!obj)
return NULL;
return ATK_COMPONENT (obj);
static AtkComponent *
get_component_from_path (const char *path, void *user_data)
{
- AtkObject *obj = spi_dbus_get_object (path);
+ AtkObject *obj = atk_dbus_get_object (path);
if (!obj || !ATK_IS_COMPONENT(obj))
return NULL;
return ATK_COMPONENT (obj);
{
AtkComponent *component = get_component (message);
dbus_int32_t x, y;
- dbus_uint32_t coord_type;
+ dbus_int16_t coord_type;
DBusError error;
dbus_bool_t retval;
DBusMessage *reply;
return spi_dbus_general_error (message);
dbus_error_init (&error);
if (!dbus_message_get_args
- (message, &error, DBUS_TYPE_INT32, &x, DBUS_TYPE_UINT32, &y,
- DBUS_TYPE_INT32, &coord_type, DBUS_TYPE_INVALID))
+ (message, &error, DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y,
+ DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
{
return SPI_DBUS_RETURN_ERROR (message, &error);
}
{
AtkComponent *component = get_component (message);
dbus_int32_t x, y;
- dbus_uint32_t coord_type;
+ dbus_int16_t coord_type;
DBusError error;
AtkObject *child;
dbus_error_init (&error);
if (!dbus_message_get_args
(message, &error, DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y,
- DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
+ DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
{
return SPI_DBUS_RETURN_ERROR (message, &error);
}
{
AtkComponent *component = get_component (message);
DBusError error;
- dbus_uint32_t coord_type;
+ dbus_int16_t coord_type;
gint ix, iy, iwidth, iheight;
if (!component)
return spi_dbus_general_error (message);
dbus_error_init (&error);
if (!dbus_message_get_args
- (message, &error, DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
+ (message, &error, DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
{
return SPI_DBUS_RETURN_ERROR (message, &error);
}
{
AtkComponent *component = get_component (message);
DBusError error;
- dbus_uint32_t coord_type;
+ dbus_int16_t coord_type;
gint ix = 0, iy = 0;
dbus_int32_t x, y;
DBusMessage *reply;
return spi_dbus_general_error (message);
dbus_error_init (&error);
if (!dbus_message_get_args
- (message, &error, DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
+ (message, &error, DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
{
return SPI_DBUS_RETURN_ERROR (message, &error);
}
reply = dbus_message_new_method_return (message);
if (reply)
{
- dbus_message_append_args (reply, DBUS_TYPE_UINT32, &rv,
- DBUS_TYPE_INVALID);
+ dbus_message_append_args (reply, DBUS_TYPE_INT16, &rv, DBUS_TYPE_INVALID);
}
return reply;
}