[at-spi2-core] Expect a signed int for GetIndexInParent, per the spec
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Expect a signed int for GetIndexInParent, per the spec
- Date: Thu, 23 Feb 2012 22:48:30 +0000 (UTC)
commit 8e3437f787a6d12a1b40ba73c109eca1e3f95f7c
Author: Mike Gorse <mgorse novell com>
Date: Thu Feb 23 16:51:31 2012 -0600
Expect a signed int for GetIndexInParent, per the spec
atspi/atspi-accessible.c | 4 ++--
registryd/registry.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index 514efce..1cd1d7b 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -491,9 +491,9 @@ atspi_accessible_get_index_in_parent (AtspiAccessible *obj, GError **error)
if (!_atspi_accessible_test_cache (obj->accessible_parent,
ATSPI_CACHE_CHILDREN))
{
- dbus_uint32_t ret = -1;
+ dbus_int32_t ret = -1;
_atspi_dbus_call (obj, atspi_interface_accessible,
- "GetIndexInParent", NULL, "=>u", &ret);
+ "GetIndexInParent", NULL, "=>i", &ret);
return ret;
}
diff --git a/registryd/registry.c b/registryd/registry.c
index d722f17..a64e094 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -674,7 +674,7 @@ impl_GetIndexInParent (DBusConnection * bus,
dbus_uint32_t rv = 0;
reply = dbus_message_new_method_return (message);
- dbus_message_append_args (reply, DBUS_TYPE_UINT32, &rv, DBUS_TYPE_INVALID);
+ dbus_message_append_args (reply, DBUS_TYPE_INT32, &rv, DBUS_TYPE_INVALID);
return reply;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]