Elm_Object_Item* item = elm_genlist_at_xy_item_get((Evas_Object*)(grand_info->address), x + w/2, y + h/2, NULL);
if (NULL != item && EINA_FALSE == elm_object_item_disabled_get(item)) {
VC_ELM_LOG_DBG("Click event");
- if (EINA_TRUE == elm_object_item_focus_get((Evas_Object*)grand_info->address)) {
+ if (EINA_TRUE == elm_object_item_focus_get(item)) {
VC_ELM_LOG_DBG("Already focused");
ecore_timer_add(0.5, __click_event, NULL);
} else {
item = elm_genlist_at_xy_item_get((Evas_Object*)(grand_info->address), x + w + w/2, y + h/2, NULL);
if (NULL != item && EINA_FALSE == elm_object_item_disabled_get(item)) {
VC_ELM_LOG_DBG("Click event 2");
- if (EINA_TRUE == elm_object_item_focus_get((Evas_Object*)grand_info->address)) {
+ if (EINA_TRUE == elm_object_item_focus_get(item)) {
VC_ELM_LOG_DBG("Already focused");
ecore_timer_add(0.5, __click_event, NULL);
} else {