- if (elm_config_access_get()) {
- Elm_Object_Item *item = (Elm_Object_Item *)event_info;
- Evas_Object *item_access = elm_object_item_access_object_get(item);
-
- if (item == it_empty || item == it_title) {
- elm_access_object_unregister(item_access);
- if (item == it_title)
- {
- Evas_Object *btn = elm_object_item_part_content_get(item, "elm.icon.1.touch_area");
- PRINTFUNC(DLOG_ERROR, "[TNT] 1st button(%p), type:%s", btn, evas_object_type_get(btn));
- Evas_Object *btn_access = btn;//elm_access_object_get(btn);
- PRINTFUNC(DLOG_ERROR, "[TNT] title item realized!!!!, force_highlight_to_top:%d, is_genlist_highlighed:%d", force_highlight_to_top, is_genlist_highlighed);
- if (force_highlight_to_top || !is_genlist_highlighed)
- {
- //highlight to first button.
- PRINTFUNC(DLOG_ERROR, "[TNT] force highlight to 1st button(%p), acces_obj:%p", btn, btn_access);
- elm_access_highlight_set(btn_access);
- force_highlight_to_top = EINA_FALSE;
- is_genlist_highlighed = EINA_TRUE;
- }
- PRINTFUNC(DLOG_ERROR, "[TNT] set highlight pre callback on btn");
- elm_access_action_cb_set(btn_access, ELM_ACCESS_ACTION_HIGHLIGHT_PREV, _access_action_prev_cb, obj);
- }
- } else if (item == it_plus) {
- //elm_access_object_unregister(item_access); // there is no guide line
- elm_access_info_cb_set(item_access, ELM_ACCESS_CONTEXT_INFO, _it_plus_access_info_cb, NULL);
- PRINTFUNC(DLOG_ERROR, "[TNT] set highlight next callback on plus item");
- elm_access_action_cb_set(item_access, ELM_ACCESS_ACTION_HIGHLIGHT_NEXT, _access_action_next_cb, obj);
- if (force_highlight_to_bottom) {
- PRINTFUNC(DLOG_ERROR, "[TNT] Forcely set highlight on plus item!!");
- elm_access_highlight_set(item_access);
- force_highlight_to_bottom = EINA_FALSE;
- is_genlist_highlighed = EINA_TRUE;
- }
- } else {
- elm_access_info_cb_set(item_access, ELM_ACCESS_CONTEXT_INFO, _access_info_cb, NULL);
- }
- }