seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=b98a4228b497c99fdea9ad84378ced9b39c1530c
commit b98a4228b497c99fdea9ad84378ced9b39c1530c Author: Chinmaya Panigrahi <[email protected]> Date: Wed Dec 4 08:21:56 2013 +0900 [Radio] Correcting example program of radio in elementary Summary: Minor defect in example program fixed. Test Plan: gcc -g radio_example_01.c -o radio_example_01 `pkg-config --cflags --libs elementary` Reviewers: seoz, singh.amitesh Differential Revision: https://phab.enlightenment.org/D363 --- src/examples/radio_example_01.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/examples/radio_example_01.c b/src/examples/radio_example_01.c index ba9b7b1..5d2aa27 100644 --- a/src/examples/radio_example_01.c +++ b/src/examples/radio_example_01.c @@ -64,10 +64,13 @@ elm_main(int argc, char **argv) radio = elm_radio_add(win); elm_object_text_set(radio, "Radio 4"); elm_radio_state_value_set(radio, 4); + elm_radio_value_pointer_set(radio, &val); + elm_radio_group_add(radio, group); elm_box_pack_end(bx, radio); evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_show(radio); + evas_object_smart_callback_add(radio, "changed", _cb, NULL); evas_object_show(win); --
