Autopcomp: select first item in candidates list.

Reviewers: Hermet

Maniphest Tasks: T2495

Differential Revision: https://phab.enlightenment.org/D2719
This commit is contained in:
Mykyta Biliavskyi 2015-06-22 13:59:50 +09:00 committed by ChunEon Park
parent 1877830e70
commit 708923f8ff
1 changed files with 2 additions and 3 deletions

View File

@ -449,18 +449,17 @@ entry_tooltip_content_cb(void *data, Evas_Object *obj EINA_UNUSED,
Eina_List *l;
lexem *lexem_data;
Elm_Object_Item *it = NULL;
EINA_LIST_FOREACH(ad->lexem_ptr->nodes, l, lexem_data)
{
if (!strncmp(lexem_data->name, ad->queue, ad->queue_pos))
{
it = elm_list_item_append(ad->list, lexem_data->name,
elm_list_item_append(ad->list, lexem_data->name,
NULL, NULL, NULL, lexem_data);
found = EINA_TRUE;
}
}
elm_list_item_selected_set(it, EINA_TRUE);
elm_list_item_selected_set(elm_list_first_item_get(ad->list), EINA_TRUE);
evas_object_smart_callback_add(ad->list, "unfocused", anchor_unfocused_cb,
ad);
evas_object_event_callback_add(ad->list, EVAS_CALLBACK_DEL, list_del_cb, ad);