From: Sung-jae Park Date: Sat, 7 Dec 2013 13:02:56 +0000 (+0900) Subject: Use the hidden API for setting the first highlighted object X-Git-Tag: submit/tizen_mobile/20150511.123737~1^2~3^2~3^2~3^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12c285c986cf12afdf9a3fc02bb0bbe9e6f029fa;p=apps%2Fnative%2Fwidget%2Fwidget-edje.git Use the hidden API for setting the first highlighted object Change-Id: I93394b665f61ec6933e69da133bd2e24f79d138c --- diff --git a/src/script_port.c b/src/script_port.c index f38a4f8..1e83a12 100644 --- a/src/script_port.c +++ b/src/script_port.c @@ -1648,11 +1648,14 @@ PUBLIC int script_destroy(void *_handle) return LB_STATUS_SUCCESS; } +void _elm_access_object_hilight(Evas_Object *obj); + PUBLIC int script_load(void *_handle, Evas *e, int w, int h) { struct info *handle; Evas_Object *edje; struct obj_info *obj_info; + int state; handle = _handle; @@ -1704,6 +1707,13 @@ PUBLIC int script_load(void *_handle, Evas *e, int w, int h) evas_object_data_set(edje, "obj_info", obj_info); handle->obj_list = eina_list_append(handle->obj_list, edje); + + if (vconf_get_bool(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, &state) == 0) { + if (state == 1) { + DbgPrint("Highlight first object\n"); + _elm_access_object_hilight(edje); + } + } return LB_STATUS_SUCCESS; }