cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=40d9b8e4fe0c07cdb06bff25017472d19fab4a75
commit 40d9b8e4fe0c07cdb06bff25017472d19fab4a75 Author: Sung-Taek Hong <sth253.h...@samsung.com> Date: Tue Aug 4 16:11:01 2015 +0200 elm_colorselector: modify to select no item when create colorselector Summary: Currently, the first item is marked selected when the colorselector is added. However, this is not normal behavior since the first item is not shown selected. Moreover, always selecting the first item during creation does not sound natural. Reviewers: cedric, Hermet, woohyun Differential Revision: https://phab.enlightenment.org/D2906 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/lib/elm_colorselector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c index 639f939..f53548e 100644 --- a/src/lib/elm_colorselector.c +++ b/src/lib/elm_colorselector.c @@ -1714,7 +1714,7 @@ _elm_colorselector_evas_object_smart_add(Eo *obj, Elm_Colorselector_Data *priv) priv->mode = ELM_COLORSELECTOR_BOTH; priv->focused = ELM_COLORSELECTOR_PALETTE; priv->sel_color_type = HUE; - priv->selected = priv->items; + priv->selected = NULL; priv->er = 255; priv->eg = 0; priv->eb = 0; --