From: Jeonghyun Yun Date: Wed, 27 Dec 2017 05:24:26 +0000 (+0900) Subject: elm_colorselector: change default mode to enhance performance. X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~666 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96e748e8dd979a2c2260b486a0c1884965e645e0;p=platform%2Fupstream%2Fefl.git elm_colorselector: change default mode to enhance performance. This commit change default mode to ELM_COLORSELECTOR_PALETTE to prevent running unnecessary logics in elm_colorselector_mode_set. @tizen_fix Change-Id: Ic34cd182724afc2bfbb6d468c718c3df57391a76 Signed-off-by: Jeonghyun Yun --- diff --git a/src/lib/elementary/elm_colorselector.c b/src/lib/elementary/elm_colorselector.c index 0a5a6c5..19ca775 100644 --- a/src/lib/elementary/elm_colorselector.c +++ b/src/lib/elementary/elm_colorselector.c @@ -1962,10 +1962,15 @@ _elm_colorselector_efl_canvas_group_group_add(Eo *obj, Elm_Colorselector_Data *p _create_colorpalette(obj); _create_colorcomponents(obj); - + /* TIZEN_ONLY(20160722) : change default mode to enhance performance elm_layout_signal_emit(obj, "elm,state,both", "elm"); priv->mode = ELM_COLORSELECTOR_BOTH; + */ + elm_layout_signal_emit(obj, "elm,state,palette", "elm"); + + priv->mode = ELM_COLORSELECTOR_PALETTE; + /* END */ priv->focused = ELM_COLORSELECTOR_PALETTE; priv->sel_color_type = HUE; priv->selected = NULL;