seoz pushed a commit to branch master. http://git.enlightenment.org/tools/elm-theme-viewer.git/commit/?id=b30e055e203fe4990e026e9e4e925556d5549b54
commit b30e055e203fe4990e026e9e4e925556d5549b54 Author: Daniel Juyung Seo <[email protected]> Date: Thu Aug 14 01:10:25 2014 +0900 option_gui: added callbacks for background change. not implemented yet. prototype status. --- src/bin/option_gui.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/bin/option_gui.c b/src/bin/option_gui.c index 1eadbbb..8d8aff5 100644 --- a/src/bin/option_gui.c +++ b/src/bin/option_gui.c @@ -202,6 +202,13 @@ _custom_color_mouse_up_cb(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, printf("%s\n", __func__); } +static void +_background_changed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) +{ + printf("background changed\n"); +} + void option_gui_background_create(Evas_Object *box) { @@ -223,6 +230,8 @@ option_gui_background_create(Evas_Object *box) WEIGHT(o, EVAS_HINT_EXPAND, 0.0); FILL(o); elm_object_text_set(o, "Default Background"); elm_radio_state_value_set(o, 1); + evas_object_smart_callback_add(o, "changed", + _background_changed_cb, NULL); elm_box_pack_end(bx, o); evas_object_show(o); @@ -231,6 +240,8 @@ option_gui_background_create(Evas_Object *box) elm_object_text_set(o, "Theme Background"); elm_radio_state_value_set(o, 2); elm_radio_group_add(o, rdg); + evas_object_smart_callback_add(o, "changed", + _background_changed_cb, NULL); elm_box_pack_end(bx, o); evas_object_show(o); @@ -246,6 +257,8 @@ option_gui_background_create(Evas_Object *box) elm_object_text_set(o, "Custom Color"); elm_radio_state_value_set(o, 3); elm_radio_group_add(o, rdg); + evas_object_smart_callback_add(o, "changed", + _background_changed_cb, NULL); elm_box_pack_end(bx, o); evas_object_show(o); @@ -263,6 +276,8 @@ option_gui_background_create(Evas_Object *box) elm_object_text_set(o, "Custom Image"); elm_radio_state_value_set(o, 4); elm_radio_group_add(o, rdg); + evas_object_smart_callback_add(o, "changed", + _background_changed_cb, NULL); elm_box_pack_end(box, o); evas_object_show(o); --
