X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cspi%2Fspi_component.c;h=cf43b7d9c74849ac9eb80a21c37e0fe4e870d40b;hb=a90cc5cacb5efd233b714287297034c079def8aa;hp=8e746e45dcb2dcf77c97055d06efc109febccaea;hpb=7b24d9fcc3d6f82195a5e7a95af9f60a833cf79f;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/cspi/spi_component.c b/cspi/spi_component.c index 8e746e4..cf43b7d 100644 --- a/cspi/spi_component.c +++ b/cspi/spi_component.c @@ -273,8 +273,22 @@ AccessibleComponent_getMDIZOrder (AccessibleComponent *obj) * * Attempt to set the keyboard input focus to the specified * #AccessibleComponent. + * + * Returns: #TRUE if successful, #FALSE otherwise. + * **/ -void +SPIBoolean AccessibleComponent_grabFocus (AccessibleComponent *obj) { + short retval; + + cspi_return_val_if_fail (obj != NULL, FALSE); + + retval = Accessibility_Component_grabFocus (CSPI_OBJREF (obj), + cspi_ev ()); + + cspi_return_val_if_ev ("grabFocus", FALSE); + + return retval; } +