From: Daniel Juyung Seo Date: Fri, 16 Jan 2015 05:33:06 +0000 (+0900) Subject: test_colorselector: Clean up a little bit. X-Git-Tag: v1.13.0-beta2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f6cf6d06db5c83bcc6f674dc25c6214159add29;p=platform%2Fupstream%2Felementary.git test_colorselector: Clean up a little bit. - Remove unnecessary data set. - Use ELM_SCALE_SIZE on min set for a better scalability. Yes this colorselector test needs a looooot of love. --- diff --git a/src/bin/test_colorselector.c b/src/bin/test_colorselector.c index 5947632..2a86f74 100644 --- a/src/bin/test_colorselector.c +++ b/src/bin/test_colorselector.c @@ -102,7 +102,7 @@ test_colorselector(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, evas_object_show(fr); re = evas_object_rectangle_add(evas_object_evas_get(win)); - evas_object_size_hint_min_set(re, 1, 100); + evas_object_size_hint_min_set(re, 1, ELM_SCALE_SIZE(100)); evas_object_show(re); elm_object_content_set(fr, re); @@ -149,7 +149,6 @@ test_colorselector(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, _color_item_selected_cb, re); evas_object_smart_callback_add(cs, "color,item,longpressed", _color_item_longpressed_cb, re); - evas_object_data_set(cs, "win", win); elm_colorselector_color_get(cs, &r, &g, &b, &a); /* Fix Alpha pre multiplication by edje */