From ed4576209c5f79e42d412a13388155cfc267bd72 Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Thu, 17 Apr 2008 14:05:05 -0400 Subject: [PATCH] Update spec to reflect what has been implemented Remove some unused code --- libspi/accessible.c | 33 +-------------------------------- xml/Accessibility_Accessible.xml | 38 +++++++++----------------------------- 2 files changed, 10 insertions(+), 61 deletions(-) diff --git a/libspi/accessible.c b/libspi/accessible.c index df18012..5828a8b 100644 --- a/libspi/accessible.c +++ b/libspi/accessible.c @@ -125,36 +125,6 @@ impl_get_childCount_str (void *datum) return g_strdup_printf ("%d", count); } -#if 0 -static DBusMessage * -impl_isEqual (DBusConnection * bus, DBusMessage * message, void *user_data) -{ -} -#endif - -#if 0 -static DBusMessage * -impl_getChildAtIndex (DBusConnection * bus, DBusMessage * message, - void *user_data) -{ - AtkObject *object = get_object (message); - dbus_int32_t index; - DBusError error; - AtkObject *child; - - if (!object) - return spi_dbus_general_error (message); - dbus_error_init (&error); - if (!dbus_message_get_args - (message, &error, DBUS_TYPE_INT32, &index, DBUS_TYPE_INVALID)) - { - return SPI_DBUS_RETURN_ERROR (message, &error); - } - child = atk_object_ref_accessible - child (object, index); - return spi_dbus_return_object (message, child, TRUE); -} -#endif - static DBusMessage * impl_getChildren (DBusConnection * bus, DBusMessage * message, void *user_data) @@ -643,12 +613,11 @@ impl_getApplication (DBusConnection * bus, DBusMessage * message, return spi_dbus_return_object (message, root, FALSE); } -// TODO: sync spec with updates made here static DRouteMethod methods[] = { //{ DROUTE_METHOD, impl_isEqual, "isEqual", "o,obj,i:b,,o" }, {DROUTE_METHOD, impl_getChildren, "getChildren", "ao,,o"}, {DROUTE_METHOD, impl_getIndexInParent, "getIndexInParent", "i,,o"}, - //{ DROUTE_METHOD, impl_getRelationSet, "getRelationSet", "a{so},,o" }, + //{ DROUTE_METHOD, impl_getRelationSet, "getRelationSet", "a{uao},,o" }, {DROUTE_METHOD, impl_getRole, "getRole", "u,,o"}, {DROUTE_METHOD, impl_getRoleName, "getRoleName", "s,,o"}, {DROUTE_METHOD, impl_getLocalizedRoleName, "getLocalizedRoleName", "s,,o"}, diff --git a/xml/Accessibility_Accessible.xml b/xml/Accessibility_Accessible.xml index 8c2894c..37f7fa7 100644 --- a/xml/Accessibility_Accessible.xml +++ b/xml/Accessibility_Accessible.xml @@ -109,36 +109,13 @@ childCount: the number of children contained by this object. - - -

Determine whether an ::Accessible refers to the same object as another. - This method should be used rather than brute-force comparison of - object references (i.e. "by-value" comparison), as two object references - may have different apparent values yet refer to the same object.

-
- - - an ::Accessible object reference to compare to - - - - - a \c boolean indicating whether the two object referencespoint to the same object. - - -
- + - Get the accessible child of this object at \c index. + Get the accessible children of this object. - - - an in parameter indicating which child is requested (zero-indexed). - - - + - the 'nth' ::Accessible child of this object. + the ::Accessible children of this object. @@ -152,16 +129,18 @@ +

Get the ::Role indicating the type of UI role played by this object.

@@ -197,9 +176,10 @@ Get the current state of the object as a ::StateSet. - + a ::StateSet encapsulating the currently true states of the object. + Returns an array of (currently two) 32-bit integers giving bitwise flags.
-- 2.7.4