summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_list.c')
-rw-r--r--src/lib/elementary/efl_ui_list.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/elementary/efl_ui_list.c b/src/lib/elementary/efl_ui_list.c
index 148e8f4..bcaca6e 100644
--- a/src/lib/elementary/efl_ui_list.c
+++ b/src/lib/elementary/efl_ui_list.c
@@ -426,8 +426,8 @@ _efl_ui_list_efl_object_finalize(Eo *obj,
426 426
427 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL); 427 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
428 428
429 Efl_Ui_Theme_Apply_Result theme_apply_ret = efl_ui_layout_theme_set(obj, "list", "base", efl_ui_widget_style_get(obj)); 429 Eina_Error theme_apply_ret = efl_ui_layout_theme_set(obj, "list", "base", efl_ui_widget_style_get(obj));
430 if (theme_apply_ret == EFL_UI_THEME_APPLY_RESULT_FAIL) 430 if (theme_apply_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC)
431 CRI("list(%p) failed to set theme [efl/list:%s]!", obj, efl_ui_widget_style_get(obj) ?: "NULL"); 431 CRI("list(%p) failed to set theme [efl/list:%s]!", obj, efl_ui_widget_style_get(obj) ?: "NULL");
432 432
433 pd->smanager = efl_add(EFL_UI_SCROLL_MANAGER_CLASS, obj); 433 pd->smanager = efl_add(EFL_UI_SCROLL_MANAGER_CLASS, obj);
@@ -444,7 +444,7 @@ _efl_ui_list_efl_object_finalize(Eo *obj,
444 efl_ui_mirrored_set(pd->box, efl_ui_mirrored_get(obj)); 444 efl_ui_mirrored_set(pd->box, efl_ui_mirrored_get(obj));
445 efl_content_set(pd->pan, pd->box); 445 efl_content_set(pd->pan, pd->box);
446 446
447 pd->select_mode = EFL_UI_SELECT_SINGLE; 447 pd->select_mode = EFL_UI_SELECT_MODE_SINGLE;
448 448
449 _scroll_edje_object_attach(obj); 449 _scroll_edje_object_attach(obj);
450 450
@@ -599,12 +599,12 @@ _efl_ui_list_efl_container_content_iterate(Eo *obj EINA_UNUSED, Efl_Ui_List_Data
599 } 599 }
600 */ 600 */
601 601
602EOLIAN static Efl_Ui_Theme_Apply_Result 602EOLIAN static Eina_Error
603_efl_ui_list_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_List_Data *pd) 603_efl_ui_list_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_List_Data *pd)
604{ 604{
605 Efl_Ui_Theme_Apply_Result int_ret = EFL_UI_THEME_APPLY_RESULT_FAIL; 605 Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
606 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS)); 606 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
607 if (!int_ret) return EFL_UI_THEME_APPLY_RESULT_FAIL; 607 if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
608 608
609 efl_ui_mirrored_set(pd->smanager, efl_ui_mirrored_get(obj)); 609 efl_ui_mirrored_set(pd->smanager, efl_ui_mirrored_get(obj));
610 610
@@ -646,7 +646,7 @@ _list_item_selected(void *data, const Efl_Event *event)
646 EFL_UI_LIST_DATA_GET_OR_RETURN(obj, pd); 646 EFL_UI_LIST_DATA_GET_OR_RETURN(obj, pd);
647 647
648 /* Single Select */ 648 /* Single Select */
649 if (pd->select_mode != EFL_UI_SELECT_MULTI) 649 if (pd->select_mode != EFL_UI_SELECT_MODE_MULTI)
650 { 650 {
651 EINA_LIST_FREE(pd->selected, selected) 651 EINA_LIST_FREE(pd->selected, selected)
652 { 652 {
@@ -935,9 +935,9 @@ _efl_ui_list_efl_ui_multi_selectable_select_mode_set(Eo *obj EINA_UNUSED,
935{ 935{
936 Efl_Ui_List_Item *selected; 936 Efl_Ui_List_Item *selected;
937 937
938 if ((pd->select_mode == EFL_UI_SELECT_MULTI && 938 if ((pd->select_mode == EFL_UI_SELECT_MODE_MULTI &&
939 mode != EFL_UI_SELECT_MULTI) || 939 mode != EFL_UI_SELECT_MODE_MULTI) ||
940 mode == EFL_UI_SELECT_NONE) 940 mode == EFL_UI_SELECT_MODE_NONE)
941 { 941 {
942 Eina_List *clone = eina_list_clone(pd->selected); 942 Eina_List *clone = eina_list_clone(pd->selected);
943 EINA_LIST_FREE(clone, selected) 943 EINA_LIST_FREE(clone, selected)