Use the hidden API for setting the first highlighted object
authorSung-jae Park <nicesj.park@samsung.com>
Sat, 7 Dec 2013 13:02:56 +0000 (22:02 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Sat, 7 Dec 2013 13:02:56 +0000 (22:02 +0900)
Change-Id: I93394b665f61ec6933e69da133bd2e24f79d138c

src/script_port.c

index f38a4f8..1e83a12 100644 (file)
@@ -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;
 }