From 5737d5e1325cfd980c5c4430c960e086438aa90a Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sun, 29 Dec 2013 02:21:31 +0900 Subject: [PATCH] test_button: Fixed wrong button number. --- src/bin/test_button.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bin/test_button.c b/src/bin/test_button.c index 5044c73..1da2cb2 100644 --- a/src/bin/test_button.c +++ b/src/bin/test_button.c @@ -160,8 +160,8 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in elm_object_style_set(bt, "anchor"); elm_object_text_set(bt, "Icon sized to button"); elm_object_part_content_set(bt, "icon", ic); - evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)1); - evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)1); + evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)8); + evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)8); elm_box_pack_end(bx, bt); evas_object_show(bt); evas_object_show(ic); @@ -174,8 +174,8 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in elm_object_style_set(bt, "anchor"); elm_object_text_set(bt, "Icon no scale"); elm_object_part_content_set(bt, "icon", ic); - evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)2); - evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)2); + evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)9); + evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)9); elm_box_pack_end(bx, bt); evas_object_show(bt); evas_object_show(ic); @@ -187,8 +187,8 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in bt = elm_button_add(win); elm_object_style_set(bt, "anchor"); elm_object_part_content_set(bt, "icon", ic); - evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)8); - evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)8); + evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)10); + evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)10); elm_box_pack_end(bx, bt); evas_object_show(bt); evas_object_show(ic); @@ -203,8 +203,8 @@ test_button(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in elm_object_text_set(bt, "Disabled"); elm_object_part_content_set(bt, "icon", ic); elm_object_disabled_set(bt, EINA_TRUE); - evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)9); - evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)9); + evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)11); + evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)11); elm_box_pack_end(bx, bt); evas_object_show(bt); evas_object_show(ic); -- 2.7.4