[Radio] Correcting example program of radio in elementary
authorChinmaya Panigrahi <c.panigrahi@samsung.com>
Tue, 3 Dec 2013 23:21:56 +0000 (08:21 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 3 Dec 2013 23:21:56 +0000 (08:21 +0900)
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

legacy/elementary/src/examples/radio_example_01.c

index ba9b7b1..5d2aa27 100644 (file)
@@ -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);