hi,
if i understand the docs right,
elm_list_select_mode_set(list, ELM_OBJECT_SELECT_MODE_ALWAYS);
is not working correct.
If i unselect an item in a list, the callback is not be called.
In the docs (https://www.enlightenment.org/_legacy_embed/group__Elm__List.html) stands
... ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected, every click will make the selected callbacks be called. ...
i had a look at the code elm_list.c
in _item_unselect(Elm_List_Item_Data *it) is nothing about
elm_list_select_mode_set(list, ELM_OBJECT_SELECT_MODE_ALWAYS);
adding these lines from _item_select(Elm_List_Item_Data *it) into _item_unselect(Elm_List_Item_Data *it) makes ELM_OBJECT_SELECT_MODE_ALWAYS working
if (sd->select_mode == ELM_OBJECT_SELECT_MODE_ALWAYS) { if (it->func) it->func((void *)WIDGET_ITEM_DATA_GET(eo_it), WIDGET(it), eo_it); evas_object_smart_callback_call(obj, "selected", eo_it); }
i don't know if my thoughts are right or I'm totally wrong, then sorry about this ticket ;)
Greetings Simon