summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-06-09 16:43:38 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-06-09 16:43:38 +0900
commit99fca104fdd8f869efe282d17840b16fda90107c (patch)
tree439788dc2787fca9e41115d31e62c89036791c22
parentc8b1d151a3eecfcd3eb85110fcd8b0756e17824d (diff)
fix list item mode change on elm list
@fix
-rw-r--r--src/lib/elm_list.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index e5ba4d4e2..ab7a49ac7 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -820,8 +820,6 @@ _items_fix(Evas_Object *obj)
820 820
821 ELM_LIST_DATA_GET(obj, sd); 821 ELM_LIST_DATA_GET(obj, sd);
822 822
823 printf("fix....\n");
824
825 style = elm_widget_style_get(obj); 823 style = elm_widget_style_get(obj);
826 it_plain = sd->h_mode ? "h_item" : "item"; 824 it_plain = sd->h_mode ? "h_item" : "item";
827 it_odd = sd->h_mode ? "h_item_odd" : "item_odd"; 825 it_odd = sd->h_mode ? "h_item_odd" : "item_odd";
@@ -866,7 +864,6 @@ _items_fix(Evas_Object *obj)
866 redo = 1; 864 redo = 1;
867 } 865 }
868 866
869 printf("walk items\n");
870 i = 0; 867 i = 0;
871 EINA_LIST_FOREACH(sd->items, l, eo_it) 868 EINA_LIST_FOREACH(sd->items, l, eo_it)
872 { 869 {
@@ -2641,12 +2638,21 @@ _elm_list_multi_select_mode_get(Eo *obj EINA_UNUSED, Elm_List_Data *sd)
2641EOLIAN static void 2638EOLIAN static void
2642_elm_list_mode_set(Eo *obj, Elm_List_Data *sd, Elm_List_Mode mode) 2639_elm_list_mode_set(Eo *obj, Elm_List_Data *sd, Elm_List_Mode mode)
2643{ 2640{
2641 Elm_Object_Item *eo_it;
2642 Eina_List *n;
2643
2644 if (sd->mode == mode) 2644 if (sd->mode == mode)
2645 return; 2645 return;
2646 2646
2647 sd->mode = mode; 2647 sd->mode = mode;
2648 2648
2649 _elm_list_mode_set_internal(obj); 2649 _elm_list_mode_set_internal(obj);
2650
2651 EINA_LIST_FOREACH(sd->items, n, eo_it)
2652 {
2653 ELM_LIST_ITEM_DATA_GET(eo_it, it);
2654 it->fixed = EINA_FALSE;
2655 }
2650 _items_fix(obj); 2656 _items_fix(obj);
2651} 2657}
2652 2658