From: Ryuan Choi Date: Thu, 16 Jan 2014 14:48:36 +0000 (+0900) Subject: test_flipselector: Fixed that buttons use wrong flipselector which is not intended. X-Git-Tag: v1.9.0-alpha1~186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af2170a8ec53a9e56b54493c2396517864cce474;p=platform%2Fupstream%2Felementary.git test_flipselector: Fixed that buttons use wrong flipselector which is not intended. Since e2db48abe, disabled flipselector was passed button callbacks. So, buttons just print warnings instead of the intended behavior. --- diff --git a/src/bin/test_flipselector.c b/src/bin/test_flipselector.c index 71cf48dec..62a67cff0 100644 --- a/src/bin/test_flipselector.c +++ b/src/bin/test_flipselector.c @@ -81,7 +81,7 @@ test_flipselector(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev { char buf[8]; unsigned int i; - Evas_Object *win, *bx, *fp, *bt, *bx2, *sl; + Evas_Object *win, *bx, *fp, *fpd, *bt, *bx2, *sl; Elm_Object_Item *it; static const char *lbl[] = { "Elementary", @@ -148,12 +148,12 @@ test_flipselector(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev elm_box_pack_end(bx2, bt); evas_object_show(bt); - fp = elm_flipselector_add(bx); - evas_object_size_hint_weight_set(fp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_flipselector_item_append(fp, "disabled", NULL, NULL); - elm_object_disabled_set(fp, EINA_TRUE); - elm_box_pack_end(bx, fp); - evas_object_show(fp); + fpd = elm_flipselector_add(bx); + evas_object_size_hint_weight_set(fpd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_flipselector_item_append(fpd, "disabled", NULL, NULL); + elm_object_disabled_set(fpd, EINA_TRUE); + elm_box_pack_end(bx, fpd); + evas_object_show(fpd); sl = elm_slider_add(bx); elm_object_text_set(sl, "Flip Interval:");