X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi-accessible.c;h=7908dea4a179e77262a72c57aa93e53ae5ad8840;hb=b6a9e880c09f13a391a2a23b0dd685a518fe61a1;hp=7e324fa0c3e762190600bae3f9f99f93d1c82f1c;hpb=18d922f77127850bef82b88f222325eef07a4782;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi-accessible.c b/cspi/spi-accessible.c index 7e324fa..7908dea 100644 --- a/cspi/spi-accessible.c +++ b/cspi/spi-accessible.c @@ -22,7 +22,7 @@ */ #include /* for malloc */ -#include "spi-common/spi-stateset.h" +#include "common/spi-stateset.h" #include static const char *role_names [] = @@ -557,19 +557,7 @@ Accessible_getLocalizedRoleName (Accessible *obj) AccessibleStateSet * Accessible_getStateSet (Accessible *obj) { - GArray *state_bitflags; - AccessibleStateSet *retval; - - cspi_return_val_if_fail (obj != NULL, NULL); - - cspi_dbus_call (obj, spi_interface_accessible, "getStateSet", NULL, "=>au", &state_bitflags); - cspi_return_val_if_ev ("getState", NULL); - - retval = spi_state_set_cache_new (state_bitflags); - - g_array_free (state_bitflags, TRUE); - - return retval; + return obj->states; } /** @@ -906,6 +894,7 @@ Accessible_getCollection (Accessible *obj) obj, spi_interface_collection); #else g_warning ("Collections not implemented"); + return NULL; #endif } @@ -1009,6 +998,7 @@ Accessible_getMatchRule (Accessible *obj) obj, spi_interface_match_rule); #else g_warning ("Match rules not supported"); + return NULL; #endif } @@ -1047,6 +1037,7 @@ Accessible_getStreamableContent (Accessible *obj) obj, spi_interface_streamable_content); #else g_warning ("Streamable content not supported"); + return NULL; #endif }