seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=8c7b7676d04a58e4c091e755688185310e445c85
commit 8c7b7676d04a58e4c091e755688185310e445c85 Author: Daniel Juyung Seo <seojuyu...@gmail.com> Date: Wed Jan 15 11:54:23 2014 +0900 test_glview_simple: Close the window instead of exiting the program on close button. --- src/bin/test_glview_simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/test_glview_simple.c b/src/bin/test_glview_simple.c index 75e23df..5626c89 100644 --- a/src/bin/test_glview_simple.c +++ b/src/bin/test_glview_simple.c @@ -211,10 +211,10 @@ _anim(void *data) } static void -_close_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, +_close_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { - elm_exit(); + evas_object_del(data); } static void @@ -283,7 +283,7 @@ test_glview_simple(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_box_pack_end(bx, bt); evas_object_show(bt); - evas_object_smart_callback_add(bt, "clicked", _close_cb, NULL); + evas_object_smart_callback_add(bt, "clicked", _close_cb, win); evas_object_resize(win, 320, 480); evas_object_show(win); --