summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_grid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_grid.c')
-rw-r--r--src/lib/elementary/efl_ui_grid.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/elementary/efl_ui_grid.c b/src/lib/elementary/efl_ui_grid.c
index a42dcbb..18e9144 100644
--- a/src/lib/elementary/efl_ui_grid.c
+++ b/src/lib/elementary/efl_ui_grid.c
@@ -576,7 +576,7 @@ _efl_ui_grid_efl_object_finalize(Eo *obj,
576 efl_ui_scroll_manager_pan_set(pd->smanager, pd->pan); 576 efl_ui_scroll_manager_pan_set(pd->smanager, pd->pan);
577 edje_object_part_swallow(wd->resize_obj, "efl.content", pd->pan); 577 edje_object_part_swallow(wd->resize_obj, "efl.content", pd->pan);
578 578
579 pd->select_mode = EFL_UI_SELECT_SINGLE; 579 pd->select_mode = EFL_UI_SELECT_MODE_SINGLE;
580 580
581 if ((pd->item.size.w == 0) && (pd->item.size.h == 0)) 581 if ((pd->item.size.w == 0) && (pd->item.size.h == 0))
582 { 582 {
@@ -844,12 +844,12 @@ _efl_ui_grid_efl_ui_direction_direction_get(const Eo *obj EINA_UNUSED, Efl_Ui_Gr
844} 844}
845 845
846 846
847EOLIAN static Efl_Ui_Theme_Apply_Result 847EOLIAN static Eina_Error
848_efl_ui_grid_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Grid_Data *pd) 848_efl_ui_grid_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Grid_Data *pd)
849{ 849{
850 Efl_Ui_Theme_Apply_Result int_ret = EFL_UI_THEME_APPLY_RESULT_FAIL; 850 Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
851 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS)); 851 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
852 if (!int_ret) return EFL_UI_THEME_APPLY_RESULT_FAIL; 852 if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
853 853
854 efl_ui_mirrored_set(pd->smanager, efl_ui_mirrored_get(obj)); 854 efl_ui_mirrored_set(pd->smanager, efl_ui_mirrored_get(obj));
855 855
@@ -891,7 +891,7 @@ _grid_item_selected(void *data, const Efl_Event *event)
891 EFL_UI_GRID_DATA_GET_OR_RETURN(obj, pd); 891 EFL_UI_GRID_DATA_GET_OR_RETURN(obj, pd);
892 892
893 /* Single Select */ 893 /* Single Select */
894 if (pd->select_mode != EFL_UI_SELECT_MULTI) 894 if (pd->select_mode != EFL_UI_SELECT_MODE_MULTI)
895 { 895 {
896 EINA_LIST_FREE(pd->selected, selected) 896 EINA_LIST_FREE(pd->selected, selected)
897 { 897 {
@@ -1222,9 +1222,9 @@ _efl_ui_grid_efl_ui_multi_selectable_select_mode_set(Eo *obj EINA_UNUSED,
1222{ 1222{
1223 Efl_Ui_Grid_Item *selected; 1223 Efl_Ui_Grid_Item *selected;
1224 1224
1225 if ((pd->select_mode == EFL_UI_SELECT_MULTI && 1225 if ((pd->select_mode == EFL_UI_SELECT_MODE_MULTI &&
1226 mode != EFL_UI_SELECT_MULTI) || 1226 mode != EFL_UI_SELECT_MODE_MULTI) ||
1227 mode == EFL_UI_SELECT_NONE) 1227 mode == EFL_UI_SELECT_MODE_NONE)
1228 { 1228 {
1229 Eina_List *clone = eina_list_clone(pd->selected); 1229 Eina_List *clone = eina_list_clone(pd->selected);
1230 EINA_LIST_FREE(clone, selected) 1230 EINA_LIST_FREE(clone, selected)