X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi_component.c;h=f644da37bec6f5285ffca94f38720d82d8bbfa01;hb=d35cd400a36b0f1393c17ce47015bf753327ccae;hp=d8b3bcef528b9dd590166582976126826a132b62;hpb=af73589b8f6efcd457290b11e183769918cf3294;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi_component.c b/cspi/spi_component.c index d8b3bce..f644da3 100644 --- a/cspi/spi_component.c +++ b/cspi/spi_component.c @@ -15,11 +15,10 @@ * Returns: (no return code implemented yet). * **/ -int +void AccessibleComponent_ref (AccessibleComponent *obj) { cspi_object_ref (obj); - return 0; } /** @@ -31,11 +30,10 @@ AccessibleComponent_ref (AccessibleComponent *obj) * Returns: (no return code implemented yet). * **/ -int +void AccessibleComponent_unref (AccessibleComponent *obj) { cspi_object_unref (obj); - return 0; } /** @@ -57,6 +55,8 @@ AccessibleComponent_contains (AccessibleComponent *obj, long int y, AccessibleCoordType ctype) { + cspi_return_val_if_fail (obj != NULL, FALSE); + return Accessibility_Component_contains (CSPI_OBJREF (obj), (CORBA_long) x, (CORBA_long) y, @@ -85,11 +85,13 @@ AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj, { Accessibility_Accessible child; - child = Accessibility_Component_getAccessibleAtPoint(CSPI_OBJREF (obj), - (CORBA_long) x, - (CORBA_long) y, - ctype, - cspi_ev ()); + cspi_return_val_if_fail (obj != NULL, NULL); + + child = Accessibility_Component_getAccessibleAtPoint (CSPI_OBJREF (obj), + (CORBA_long) x, + (CORBA_long) y, + ctype, + cspi_ev ()); return cspi_object_add (child); } @@ -115,14 +117,23 @@ AccessibleComponent_getExtents (AccessibleComponent *obj, AccessibleCoordType ctype) { Accessibility_BoundingBox bbox; + + cspi_return_if_fail (obj != NULL); + bbox = Accessibility_Component_getExtents (CSPI_OBJREF (obj), ctype, cspi_ev ()); - cspi_warn_ev (cspi_ev (), "AccessibleComponent_getExtents"); - *x = bbox.x; - *y = bbox.y; - *width = bbox.width; - *height = bbox.height; + if (cspi_check_ev ("AccessibleComponent_getExtents")) + { + *x = *y = *width = *height = 0; + } + else + { + *x = bbox.x; + *y = bbox.y; + *width = bbox.width; + *height = bbox.height; + } } /**