hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=708923f8ff9dd8eab7a5616f997a3c37e3a3e96e
commit 708923f8ff9dd8eab7a5616f997a3c37e3a3e96e Author: Mykyta Biliavskyi <[email protected]> Date: Mon Jun 22 13:59:50 2015 +0900 Autopcomp: select first item in candidates list. Reviewers: Hermet Maniphest Tasks: T2495 Differential Revision: https://phab.enlightenment.org/D2719 --- src/lib/auto_comp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/auto_comp.c b/src/lib/auto_comp.c index 08b0db1..17fe989 100644 --- a/src/lib/auto_comp.c +++ b/src/lib/auto_comp.c @@ -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); --
