elm_colorselector : set selected status directly in selected_set function 13/165213/1
authorJeonghyun Yun <jh0506.yun@samsung.com>
Wed, 27 Dec 2017 06:03:47 +0000 (15:03 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Wed, 27 Dec 2017 06:04:14 +0000 (15:04 +0900)
@tizen_fix

Change-Id: I79bdea8bfdcf4f57e2a49dea711e4ce6a106857c
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
src/lib/elementary/elm_colorselector.c

index 0e445c5..44350a7 100644 (file)
@@ -2634,6 +2634,8 @@ _elm_color_item_selected_set(Eo *eo_item,
         elm_object_signal_emit(VIEW(item), "elm,anim,activate", "elm");
         efl_event_callback_legacy_call
           (WIDGET(item), ELM_COLORSELECTOR_EVENT_COLOR_ITEM_SELECTED, eo_item);*/
+        EINA_LIST_FOREACH(sd->items, l, eo_temp_item)
+          if (eo_item == eo_temp_item) sd->selected = l;
 
         elm_object_signal_emit(VIEW(item), "elm,anim,activate", "elm");
         //