}
static void
-_elm_genlist_item_focus_set(Elm_Gen_Item *it, Elm_Focus_Direction dir)
+_elm_genlist_item_content_focus_set(Elm_Gen_Item *it, Elm_Focus_Direction dir)
{
Evas_Object *focused_obj = NULL;
Eina_List *l;
x -= step_x;
Elm_Gen_Item *gt = (Elm_Gen_Item*)elm_genlist_selected_item_get(obj);
- _elm_genlist_item_focus_set(gt, ELM_FOCUS_LEFT);
+ _elm_genlist_item_content_focus_set(gt, ELM_FOCUS_LEFT);
}
else if ((!strcmp(ev->key, "Right")) ||
((!strcmp(ev->key, "KP_Right")) && (!ev->string)))
x += step_x;
Elm_Gen_Item *gt = (Elm_Gen_Item*)elm_genlist_selected_item_get(obj);
- _elm_genlist_item_focus_set(gt, ELM_FOCUS_RIGHT);
+ _elm_genlist_item_content_focus_set(gt, ELM_FOCUS_RIGHT);
}
else if ((!strcmp(ev->key, "Up")) ||
((!strcmp(ev->key, "KP_Up")) && (!ev->string)))
if (it->generation == sd->generation)
evas_object_smart_callback_call(WIDGET(it), SIG_SELECTED, it);
- _elm_genlist_item_focus_set(it, ELM_FOCUS_PREVIOUS);
+ _elm_genlist_item_content_focus_set(it, ELM_FOCUS_PREVIOUS);
it->walking--;
sd->walking--;
}
static Eina_Bool
-_elm_list_item_focus_set(Elm_List_Item *it, Elm_Focus_Direction dir, Eina_Bool h_mode)
+_elm_list_item_content_focus_set(Elm_List_Item *it, Elm_Focus_Direction dir,
+ Eina_Bool h_mode)
{
if (!it) return EINA_FALSE;
ELM_LIST_DATA_GET(WIDGET(it), sd);
((!strcmp(ev->key, "KP_Left")) && !ev->string))
{
it = (Elm_List_Item *)elm_list_selected_item_get(obj);
- Eina_Bool focused = _elm_list_item_focus_set(it, ELM_FOCUS_LEFT, sd->h_mode);
+ Eina_Bool focused = _elm_list_item_content_focus_set(
+ it, ELM_FOCUS_LEFT, sd->h_mode);
if ((sd->h_mode && !focused))
{
((!strcmp(ev->key, "KP_Right")) && !ev->string))
{
it = (Elm_List_Item *)elm_list_selected_item_get(obj);
- Eina_Bool focused = _elm_list_item_focus_set(it, ELM_FOCUS_RIGHT, sd->h_mode);
+ Eina_Bool focused = _elm_list_item_content_focus_set(
+ it, ELM_FOCUS_RIGHT, sd->h_mode);
if (sd->h_mode && !focused)
{
((!strcmp(ev->key, "KP_Up")) && !ev->string))
{
it = (Elm_List_Item *)elm_list_selected_item_get(obj);
- Eina_Bool focused = _elm_list_item_focus_set(it, ELM_FOCUS_UP, sd->h_mode);
+ Eina_Bool focused = _elm_list_item_content_focus_set(
+ it, ELM_FOCUS_UP, sd->h_mode);
if (!sd->h_mode && !focused)
{
((!strcmp(ev->key, "KP_Down")) && !ev->string))
{
it = (Elm_List_Item *)elm_list_selected_item_get(obj);
- Eina_Bool focused = _elm_list_item_focus_set(it, ELM_FOCUS_DOWN, sd->h_mode);
+ Eina_Bool focused = _elm_list_item_content_focus_set(
+ it, ELM_FOCUS_DOWN, sd->h_mode);
if (!sd->h_mode && !focused)
{
return;
}
- _elm_list_item_focus_set(it, ELM_FOCUS_PREVIOUS, sd->h_mode);
+ _elm_list_item_content_focus_set(it, ELM_FOCUS_PREVIOUS, sd->h_mode);
it->selected = EINA_TRUE;
sd->selected = eina_list_append(sd->selected, it);