summaryrefslogtreecommitdiff
path: root/src/examples/theme_example_01.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 06:04:36 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 06:04:36 +0000
commit853aabf827c1e3567c3ca02cc2e7d9d0b456817a (patch)
tree707506086298d8b95e8e878acab28447f149b95f /src/examples/theme_example_01.c
parentd6440aa81a61bc6d6f5fde040340268b6ab887c6 (diff)
elm examples: Use standard way of elementary applications. EAPI_MAIN, elm_shutdown, ELM_MAIN()
SVN revision: 69690
Diffstat (limited to 'src/examples/theme_example_01.c')
-rw-r--r--src/examples/theme_example_01.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/theme_example_01.c b/src/examples/theme_example_01.c
index 327edac..1c1b5b4 100644
--- a/src/examples/theme_example_01.c
+++ b/src/examples/theme_example_01.c
@@ -39,7 +39,7 @@ btn_style_click_cb(void *data __UNUSED__, Evas_Object *btn, void *ev __UNUSED__)
39 elm_object_style_set(btn, styles[sel_style]); 39 elm_object_style_set(btn, styles[sel_style]);
40} 40}
41 41
42int 42EAPI_MAIN int
43elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 43elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
44{ 44{
45 Evas_Object *win, *bg, *box, *btn; 45 Evas_Object *win, *bg, *box, *btn;
@@ -77,7 +77,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
77 evas_object_smart_callback_add(btn, "clicked", btn_style_click_cb, NULL); 77 evas_object_smart_callback_add(btn, "clicked", btn_style_click_cb, NULL);
78 78
79 elm_run(); 79 elm_run();
80 elm_shutdown();
80 81
81 return 0; 82 return 0;
82} 83}
83ELM_MAIN(); 84ELM_MAIN()