elm_colorselector : set selected status directly in selected_set function 35/139735/2 accepted/tizen/unified/20170721.201726 submit/tizen/20170721.005824
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Thu, 20 Jul 2017 08:17:06 +0000 (17:17 +0900)
committerJEONGHYUN YUN <jh0506.yun@samsung.com>
Thu, 20 Jul 2017 08:20:33 +0000 (17:20 +0900)
Change-Id: Ibaaf0035f90c5b3b766f2dbc4746bd12fc46661c
Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
src/lib/elm_colorselector.c

index b777e1ad29634809b78bdd761321096f279264f8..6742410dfb39b48395fbd99ae027f550268a7ecb 100644 (file)
@@ -2644,9 +2644,7 @@ _elm_color_item_selected_set(Eo *eo_item,
                              Eina_Bool selected)
 {
    Eo *eo_temp_item;
-   /* TIZEN_ONLY(20170719): item selection procedure is handled by _on_color_selected()
    Eina_List *l;
-   */
 
    ELM_COLORSELECTOR_DATA_GET(WIDGET(item), sd);
 
@@ -2680,6 +2678,9 @@ _elm_color_item_selected_set(Eo *eo_item,
         elm_object_signal_emit(VIEW(item), "elm,anim,activate", "elm");
         eo_do(WIDGET(item), eo_event_callback_call
           (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");
         //
      }