summaryrefslogtreecommitdiff
path: root/src
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
parentd6440aa81a61bc6d6f5fde040340268b6ab887c6 (diff)
elm examples: Use standard way of elementary applications. EAPI_MAIN, elm_shutdown, ELM_MAIN()
SVN revision: 69690
Diffstat (limited to 'src')
-rw-r--r--src/examples/actionslider_example_01.c1
-rw-r--r--src/examples/anchorblock_example_01.c5
-rw-r--r--src/examples/bg_example_01.c3
-rw-r--r--src/examples/bg_example_02.c4
-rw-r--r--src/examples/bg_example_03.c3
-rw-r--r--src/examples/box_example_02.c5
-rw-r--r--src/examples/bubble_example_01.c3
-rw-r--r--src/examples/button_example_00.c6
-rw-r--r--src/examples/button_example_01.c5
-rw-r--r--src/examples/calendar_example_01.c2
-rw-r--r--src/examples/calendar_example_02.c2
-rw-r--r--src/examples/calendar_example_03.c2
-rw-r--r--src/examples/calendar_example_04.c2
-rw-r--r--src/examples/calendar_example_05.c2
-rw-r--r--src/examples/calendar_example_06.c2
-rw-r--r--src/examples/check_example_01.c2
-rw-r--r--src/examples/clock_example.c4
-rw-r--r--src/examples/colorselector_example_01.c1
-rw-r--r--src/examples/conformant_example_01.c2
-rw-r--r--src/examples/conformant_example_02.c2
-rw-r--r--src/examples/ctxpopup_example_01.c1
-rw-r--r--src/examples/datetime_example.c5
-rw-r--r--src/examples/dayselector_example.c4
-rw-r--r--src/examples/diskselector_example_01.c2
-rw-r--r--src/examples/diskselector_example_02.c2
-rw-r--r--src/examples/efl_thread_1.c5
-rw-r--r--src/examples/efl_thread_2.c5
-rw-r--r--src/examples/efl_thread_3.c5
-rw-r--r--src/examples/efl_thread_4.c5
-rw-r--r--src/examples/efl_thread_5.c5
-rw-r--r--src/examples/efl_thread_6.c5
-rw-r--r--src/examples/efl_thread_win32_1.c5
-rw-r--r--src/examples/efl_thread_win32_2.c5
-rw-r--r--src/examples/efl_thread_win32_3.c5
-rw-r--r--src/examples/efl_thread_win32_4.c5
-rw-r--r--src/examples/entry_example.c5
-rw-r--r--src/examples/fileselector_button_example.c3
-rw-r--r--src/examples/fileselector_entry_example.c3
-rw-r--r--src/examples/fileselector_example.c3
-rw-r--r--src/examples/flip_example_01.c1
-rw-r--r--src/examples/flipselector_example.c2
-rw-r--r--src/examples/frame_example_01.c6
-rw-r--r--src/examples/general_funcs_example.c3
-rw-r--r--src/examples/gengrid_example.c5
-rw-r--r--src/examples/genlist_example_01.c4
-rw-r--r--src/examples/genlist_example_02.c4
-rw-r--r--src/examples/genlist_example_03.c4
-rw-r--r--src/examples/genlist_example_04.c4
-rw-r--r--src/examples/genlist_example_05.c8
-rw-r--r--src/examples/glview_example_01.c4
-rw-r--r--src/examples/hover_example_01.c1
-rw-r--r--src/examples/hoversel_example_01.c1
-rw-r--r--src/examples/icon_example_01.c4
-rw-r--r--src/examples/image_example_01.c2
-rw-r--r--src/examples/index_example_01.c5
-rw-r--r--src/examples/index_example_02.c5
-rw-r--r--src/examples/inwin_example.c5
-rw-r--r--src/examples/label_example_01.c1
-rw-r--r--src/examples/layout_example_01.c4
-rw-r--r--src/examples/layout_example_02.c4
-rw-r--r--src/examples/layout_example_03.c4
-rw-r--r--src/examples/list_example_01.c2
-rw-r--r--src/examples/list_example_02.c2
-rw-r--r--src/examples/list_example_03.c2
-rw-r--r--src/examples/map_example_01.c2
-rw-r--r--src/examples/map_example_02.c2
-rw-r--r--src/examples/map_example_03.c2
-rw-r--r--src/examples/mapbuf_example.c2
-rw-r--r--src/examples/menu_example_01.c1
-rw-r--r--src/examples/notify_example_01.c1
-rw-r--r--src/examples/panel_example_01.c1
-rw-r--r--src/examples/panes_example.c4
-rw-r--r--src/examples/photocam_example_01.c1
-rw-r--r--src/examples/popup_example_01.c1
-rw-r--r--src/examples/popup_example_02.c2
-rw-r--r--src/examples/popup_example_03.c1
-rw-r--r--src/examples/progressbar_example.c5
-rw-r--r--src/examples/radio_example_01.c1
-rw-r--r--src/examples/scroller_example_01.c1
-rw-r--r--src/examples/segment_control_example.c4
-rw-r--r--src/examples/separator_example_01.c1
-rw-r--r--src/examples/slider_example.c4
-rw-r--r--src/examples/slideshow_example.c5
-rw-r--r--src/examples/spinner_example.c4
-rw-r--r--src/examples/table_example_01.c1
-rw-r--r--src/examples/table_example_02.c1
-rw-r--r--src/examples/theme_example_01.c5
-rw-r--r--src/examples/theme_example_02.c5
-rw-r--r--src/examples/thumb_example_01.c3
-rw-r--r--src/examples/toolbar_example_01.c2
-rw-r--r--src/examples/toolbar_example_02.c2
-rw-r--r--src/examples/toolbar_example_03.c2
-rw-r--r--src/examples/transit_example_01.c4
-rw-r--r--src/examples/transit_example_02.c4
-rw-r--r--src/examples/transit_example_03.c4
-rw-r--r--src/examples/transit_example_04.c6
-rw-r--r--src/examples/web_example.c5
-rw-r--r--src/examples/win_example.c5
98 files changed, 206 insertions, 111 deletions
diff --git a/src/examples/actionslider_example_01.c b/src/examples/actionslider_example_01.c
index e09d8ae..2a0fbb9 100644
--- a/src/examples/actionslider_example_01.c
+++ b/src/examples/actionslider_example_01.c
@@ -147,6 +147,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
147 evas_object_show(win); 147 evas_object_show(win);
148 148
149 elm_run(); 149 elm_run();
150 elm_shutdown();
150 return 0; 151 return 0;
151} 152}
152ELM_MAIN() 153ELM_MAIN()
diff --git a/src/examples/anchorblock_example_01.c b/src/examples/anchorblock_example_01.c
index 06440c5..a5b3c73 100644
--- a/src/examples/anchorblock_example_01.c
+++ b/src/examples/anchorblock_example_01.c
@@ -11,7 +11,7 @@
11static void _anchorblock_clicked_cb(void *data, Evas_Object *obj, void *ev); 11static void _anchorblock_clicked_cb(void *data, Evas_Object *obj, void *ev);
12static void _anchorview_clicked_cb(void *data, Evas_Object *obj, void *ev); 12static void _anchorview_clicked_cb(void *data, Evas_Object *obj, void *ev);
13 13
14int 14EAPI_MAIN int
15elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 15elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
16{ 16{
17 Evas_Object *win, *box, *o, *frame; 17 Evas_Object *win, *box, *o, *frame;
@@ -80,10 +80,11 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
80 elm_object_content_set(frame, o); 80 elm_object_content_set(frame, o);
81 81
82 elm_run(); 82 elm_run();
83 elm_shutdown();
83 84
84 return 0; 85 return 0;
85} 86}
86ELM_MAIN(); 87ELM_MAIN()
87 88
88static void _anchor_buttons_create(Evas_Object *ao, Elm_Entry_Anchorblock_Info *info, Evas_Smart_Cb btn_end_cb); 89static void _anchor_buttons_create(Evas_Object *ao, Elm_Entry_Anchorblock_Info *info, Evas_Smart_Cb btn_end_cb);
89 90
diff --git a/src/examples/bg_example_01.c b/src/examples/bg_example_01.c
index c168a9f..6ce6258 100644
--- a/src/examples/bg_example_01.c
+++ b/src/examples/bg_example_01.c
@@ -15,7 +15,7 @@ on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __U
15 elm_exit(); 15 elm_exit();
16} 16}
17 17
18int 18EAPI_MAIN int
19elm_main(int argc __UNUSED__, char **argv __UNUSED__) 19elm_main(int argc __UNUSED__, char **argv __UNUSED__)
20{ 20{
21 Evas_Object *win, *bg; 21 Evas_Object *win, *bg;
@@ -52,5 +52,4 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
52 /* exit code */ 52 /* exit code */
53 return 0; 53 return 0;
54} 54}
55
56ELM_MAIN() 55ELM_MAIN()
diff --git a/src/examples/bg_example_02.c b/src/examples/bg_example_02.c
index 368830f..29f32a0 100644
--- a/src/examples/bg_example_02.c
+++ b/src/examples/bg_example_02.c
@@ -16,7 +16,7 @@ on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __U
16 elm_exit(); 16 elm_exit();
17} 17}
18 18
19int 19EAPI_MAIN int
20elm_main(int argc __UNUSED__, char **argv __UNUSED__) 20elm_main(int argc __UNUSED__, char **argv __UNUSED__)
21{ 21{
22 Evas_Object *win, *bg; 22 Evas_Object *win, *bg;
@@ -42,8 +42,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
42 evas_object_show(win); 42 evas_object_show(win);
43 43
44 elm_run(); 44 elm_run();
45 elm_shutdown();
45 46
46 return 0; 47 return 0;
47} 48}
48
49ELM_MAIN() 49ELM_MAIN()
diff --git a/src/examples/bg_example_03.c b/src/examples/bg_example_03.c
index 5ee8fb4..033b56a 100644
--- a/src/examples/bg_example_03.c
+++ b/src/examples/bg_example_03.c
@@ -61,7 +61,7 @@ _cb_color_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
61 elm_bg_color_set(o_bg, 0, 255, 0); 61 elm_bg_color_set(o_bg, 0, 255, 0);
62} 62}
63 63
64int 64EAPI_MAIN int
65elm_main(int argc __UNUSED__, char **argv __UNUSED__) 65elm_main(int argc __UNUSED__, char **argv __UNUSED__)
66{ 66{
67 Evas_Object *win, *bg; 67 Evas_Object *win, *bg;
@@ -168,6 +168,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
168 evas_object_show(win); 168 evas_object_show(win);
169 169
170 elm_run(); 170 elm_run();
171 elm_shutdown();
171 172
172 return 0; 173 return 0;
173} 174}
diff --git a/src/examples/box_example_02.c b/src/examples/box_example_02.c
index 16ac525..7b1a5a3 100644
--- a/src/examples/box_example_02.c
+++ b/src/examples/box_example_02.c
@@ -71,7 +71,7 @@ _test_box_transition_change(void *data)
71 tdata->transitions); 71 tdata->transitions);
72} 72}
73 73
74int 74EAPI_MAIN int
75elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 75elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
76{ 76{
77 Evas_Object *win, *bg, *bigbox, *bx, *bt; 77 Evas_Object *win, *bg, *bigbox, *bx, *bt;
@@ -167,7 +167,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
167 _test_box_transition_change(&tdata); 167 _test_box_transition_change(&tdata);
168 168
169 elm_run(); 169 elm_run();
170 elm_shutdown();
170 171
171 return 0; 172 return 0;
172} 173}
173ELM_MAIN(); 174ELM_MAIN()
diff --git a/src/examples/bubble_example_01.c b/src/examples/bubble_example_01.c
index 21db797..47546bd 100644
--- a/src/examples/bubble_example_01.c
+++ b/src/examples/bubble_example_01.c
@@ -66,8 +66,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
66 evas_object_show(bubble); 66 evas_object_show(bubble);
67 67
68 elm_run(); 68 elm_run();
69 69 elm_shutdown();
70 evas_object_del(icon);
71 70
72 return 0; 71 return 0;
73} 72}
diff --git a/src/examples/button_example_00.c b/src/examples/button_example_00.c
index 51b9a54..e35b80f 100644
--- a/src/examples/button_example_00.c
+++ b/src/examples/button_example_00.c
@@ -14,7 +14,7 @@ on_click(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __
14 elm_exit(); 14 elm_exit();
15} 15}
16 16
17int 17EAPI_MAIN int
18elm_main(int argc __UNUSED__, char **argv __UNUSED__) 18elm_main(int argc __UNUSED__, char **argv __UNUSED__)
19{ 19{
20 Evas_Object *win = NULL; 20 Evas_Object *win = NULL;
@@ -47,8 +47,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
47 evas_object_show(btn); 47 evas_object_show(btn);
48 48
49 elm_run(); 49 elm_run();
50 elm_shutdown();
50 51
51 return 0; 52 return 0;
52} 53}
53 54ELM_MAIN()
54ELM_MAIN();
diff --git a/src/examples/button_example_01.c b/src/examples/button_example_01.c
index 414dc2b..8b051c3 100644
--- a/src/examples/button_example_01.c
+++ b/src/examples/button_example_01.c
@@ -100,7 +100,7 @@ _btn_options_cb(void *data, Evas_Object *btn, void *ev __UNUSED__)
100 } 100 }
101} 101}
102 102
103int 103EAPI_MAIN int
104elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 104elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
105{ 105{
106 Evas_Object *win, *bg, *box, *box2, *btn, *icon; 106 Evas_Object *win, *bg, *box, *box2, *btn, *icon;
@@ -263,7 +263,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
263 data.cursors.down = btn; 263 data.cursors.down = btn;
264 264
265 elm_run(); 265 elm_run();
266 elm_shutdown();
266 267
267 return 0; 268 return 0;
268} 269}
269ELM_MAIN(); 270ELM_MAIN()
diff --git a/src/examples/calendar_example_01.c b/src/examples/calendar_example_01.c
index e52afac..7be949d 100644
--- a/src/examples/calendar_example_01.c
+++ b/src/examples/calendar_example_01.c
@@ -39,6 +39,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
39 evas_object_show(win); 39 evas_object_show(win);
40 40
41 elm_run(); 41 elm_run();
42 elm_shutdown();
43
42 return 0; 44 return 0;
43} 45}
44ELM_MAIN() 46ELM_MAIN()
diff --git a/src/examples/calendar_example_02.c b/src/examples/calendar_example_02.c
index 9db3855..56a5d0d 100644
--- a/src/examples/calendar_example_02.c
+++ b/src/examples/calendar_example_02.c
@@ -57,6 +57,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
57 evas_object_show(win); 57 evas_object_show(win);
58 58
59 elm_run(); 59 elm_run();
60 elm_shutdown();
61
60 return 0; 62 return 0;
61} 63}
62ELM_MAIN() 64ELM_MAIN()
diff --git a/src/examples/calendar_example_03.c b/src/examples/calendar_example_03.c
index 9804dac..a54c892 100644
--- a/src/examples/calendar_example_03.c
+++ b/src/examples/calendar_example_03.c
@@ -41,6 +41,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
41 evas_object_show(win); 41 evas_object_show(win);
42 42
43 elm_run(); 43 elm_run();
44 elm_shutdown();
45
44 return 0; 46 return 0;
45} 47}
46ELM_MAIN() 48ELM_MAIN()
diff --git a/src/examples/calendar_example_04.c b/src/examples/calendar_example_04.c
index 55978ac..ed90a5d 100644
--- a/src/examples/calendar_example_04.c
+++ b/src/examples/calendar_example_04.c
@@ -60,6 +60,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
60 evas_object_show(win); 60 evas_object_show(win);
61 61
62 elm_run(); 62 elm_run();
63 elm_shutdown();
64
63 return 0; 65 return 0;
64} 66}
65ELM_MAIN() 67ELM_MAIN()
diff --git a/src/examples/calendar_example_05.c b/src/examples/calendar_example_05.c
index 9a2b702..5b45b3d 100644
--- a/src/examples/calendar_example_05.c
+++ b/src/examples/calendar_example_05.c
@@ -67,6 +67,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
67 evas_object_show(win); 67 evas_object_show(win);
68 68
69 elm_run(); 69 elm_run();
70 elm_shutdown();
71
70 return 0; 72 return 0;
71} 73}
72ELM_MAIN() 74ELM_MAIN()
diff --git a/src/examples/calendar_example_06.c b/src/examples/calendar_example_06.c
index dce81d4..60b13f8 100644
--- a/src/examples/calendar_example_06.c
+++ b/src/examples/calendar_example_06.c
@@ -94,6 +94,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
94 evas_object_show(win); 94 evas_object_show(win);
95 95
96 elm_run(); 96 elm_run();
97 elm_shutdown();
98
97 return 0; 99 return 0;
98} 100}
99ELM_MAIN() 101ELM_MAIN()
diff --git a/src/examples/check_example_01.c b/src/examples/check_example_01.c
index a232193..a0d99c5 100644
--- a/src/examples/check_example_01.c
+++ b/src/examples/check_example_01.c
@@ -51,7 +51,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
51 evas_object_show(win); 51 evas_object_show(win);
52 52
53 elm_run(); 53 elm_run();
54 evas_object_del(icon); 54 elm_shutdown();
55 55
56 return 0; 56 return 0;
57} 57}
diff --git a/src/examples/clock_example.c b/src/examples/clock_example.c
index b510b17..b511b5e 100644
--- a/src/examples/clock_example.c
+++ b/src/examples/clock_example.c
@@ -24,7 +24,7 @@ _on_done(void *data __UNUSED__,
24 elm_exit(); 24 elm_exit();
25} 25}
26 26
27int 27EAPI_MAIN int
28elm_main(int argc __UNUSED__, char **argv __UNUSED__) 28elm_main(int argc __UNUSED__, char **argv __UNUSED__)
29{ 29{
30 Evas_Object *win, *bg, *bx, *ck; 30 Evas_Object *win, *bg, *bx, *ck;
@@ -83,6 +83,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
83 evas_object_show(win); 83 evas_object_show(win);
84 84
85 elm_run(); 85 elm_run();
86 elm_shutdown();
87
86 return 0; 88 return 0;
87} 89}
88ELM_MAIN() 90ELM_MAIN()
diff --git a/src/examples/colorselector_example_01.c b/src/examples/colorselector_example_01.c
index a9225b7..43a6be4 100644
--- a/src/examples/colorselector_example_01.c
+++ b/src/examples/colorselector_example_01.c
@@ -67,6 +67,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
67 evas_object_show(win); 67 evas_object_show(win);
68 68
69 elm_run(); 69 elm_run();
70 elm_shutdown();
70 71
71 return 0; 72 return 0;
72} 73}
diff --git a/src/examples/conformant_example_01.c b/src/examples/conformant_example_01.c
index 0ea316d..4bbef18 100644
--- a/src/examples/conformant_example_01.c
+++ b/src/examples/conformant_example_01.c
@@ -74,6 +74,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
74 evas_object_show(win); 74 evas_object_show(win);
75 75
76 elm_run(); 76 elm_run();
77 elm_shutdown();
78
77 return 0; 79 return 0;
78} 80}
79ELM_MAIN() 81ELM_MAIN()
diff --git a/src/examples/conformant_example_02.c b/src/examples/conformant_example_02.c
index 0c05b05..a2ec8a3 100644
--- a/src/examples/conformant_example_02.c
+++ b/src/examples/conformant_example_02.c
@@ -80,6 +80,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
80 evas_object_show(win); 80 evas_object_show(win);
81 81
82 elm_run(); 82 elm_run();
83 elm_shutdown();
84
83 return 0; 85 return 0;
84} 86}
85ELM_MAIN() 87ELM_MAIN()
diff --git a/src/examples/ctxpopup_example_01.c b/src/examples/ctxpopup_example_01.c
index ed84b5c..2a82db5 100644
--- a/src/examples/ctxpopup_example_01.c
+++ b/src/examples/ctxpopup_example_01.c
@@ -104,6 +104,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
104 elm_list_go(list); 104 elm_list_go(list);
105 105
106 elm_run(); 106 elm_run();
107 elm_shutdown();
107 108
108 return 0; 109 return 0;
109} 110}
diff --git a/src/examples/datetime_example.c b/src/examples/datetime_example.c
index 8e8ddf9..cbb011e 100644
--- a/src/examples/datetime_example.c
+++ b/src/examples/datetime_example.c
@@ -16,7 +16,7 @@ _on_done(void *data __UNUSED__,
16 elm_exit(); 16 elm_exit();
17} 17}
18 18
19int 19EAPI_MAIN int
20elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 20elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
21{ 21{
22 Evas_Object *win, *bg, *bx, *datetime; 22 Evas_Object *win, *bg, *bx, *datetime;
@@ -67,7 +67,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
67 evas_object_show(win); 67 evas_object_show(win);
68 68
69 elm_run(); 69 elm_run();
70 elm_shutdown();
70 71
71 return 0; 72 return 0;
72} 73}
73ELM_MAIN(); 74ELM_MAIN()
diff --git a/src/examples/dayselector_example.c b/src/examples/dayselector_example.c
index 3eecbd4..265f9a6 100644
--- a/src/examples/dayselector_example.c
+++ b/src/examples/dayselector_example.c
@@ -50,7 +50,7 @@ static void _changed_cb(void* data __UNUSED__, Evas_Object* obj, void* event_inf
50} 50}
51/* End of clicked callback */ 51/* End of clicked callback */
52 52
53int 53EAPI_MAIN int
54elm_main(int argc __UNUSED__, char **argv __UNUSED__) 54elm_main(int argc __UNUSED__, char **argv __UNUSED__)
55{ 55{
56 Evas_Object *win, *bg, *bx, *dayselector; 56 Evas_Object *win, *bg, *bx, *dayselector;
@@ -90,6 +90,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
90 evas_object_show(win); 90 evas_object_show(win);
91 91
92 elm_run(); 92 elm_run();
93 elm_shutdown();
94
93 return 0; 95 return 0;
94} 96}
95ELM_MAIN() 97ELM_MAIN()
diff --git a/src/examples/diskselector_example_01.c b/src/examples/diskselector_example_01.c
index 58c4d39..d506e35 100644
--- a/src/examples/diskselector_example_01.c
+++ b/src/examples/diskselector_example_01.c
@@ -102,6 +102,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
102 evas_object_show(win); 102 evas_object_show(win);
103 103
104 elm_run(); 104 elm_run();
105 elm_shutdown();
106
105 return 0; 107 return 0;
106} 108}
107ELM_MAIN() 109ELM_MAIN()
diff --git a/src/examples/diskselector_example_02.c b/src/examples/diskselector_example_02.c
index 7f32aa7..0638d23 100644
--- a/src/examples/diskselector_example_02.c
+++ b/src/examples/diskselector_example_02.c
@@ -347,6 +347,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
347 evas_object_show(win); 347 evas_object_show(win);
348 348
349 elm_run(); 349 elm_run();
350 elm_shutdown();
351
350 return 0; 352 return 0;
351} 353}
352ELM_MAIN() 354ELM_MAIN()
diff --git a/src/examples/efl_thread_1.c b/src/examples/efl_thread_1.c
index 28fa6e4..bc91ca8 100644
--- a/src/examples/efl_thread_1.c
+++ b/src/examples/efl_thread_1.c
@@ -50,7 +50,7 @@ my_thread_new(void)
50 perror("pthread_create"); 50 perror("pthread_create");
51} 51}
52 52
53int 53EAPI_MAIN int
54elm_main(int argc __UNUSED__, char **argv __UNUSED__) 54elm_main(int argc __UNUSED__, char **argv __UNUSED__)
55{ 55{
56 Evas_Object *o, *bg; 56 Evas_Object *o, *bg;
@@ -77,7 +77,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
77 my_thread_new(); 77 my_thread_new();
78 78
79 elm_run(); 79 elm_run();
80 elm_shutdown();
81
80 return 0; 82 return 0;
81} 83}
82
83ELM_MAIN() 84ELM_MAIN()
diff --git a/src/examples/efl_thread_2.c b/src/examples/efl_thread_2.c
index bb89ac4..377c43d 100644
--- a/src/examples/efl_thread_2.c
+++ b/src/examples/efl_thread_2.c
@@ -66,7 +66,7 @@ my_thread_mainloop_code(void *data)
66 return NULL; 66 return NULL;
67} 67}
68 68
69int 69EAPI_MAIN int
70elm_main(int argc __UNUSED__, char **argv __UNUSED__) 70elm_main(int argc __UNUSED__, char **argv __UNUSED__)
71{ 71{
72 Evas_Object *o, *bg; 72 Evas_Object *o, *bg;
@@ -93,7 +93,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
93 my_thread_new(); 93 my_thread_new();
94 94
95 elm_run(); 95 elm_run();
96 elm_shutdown();
97
96 return 0; 98 return 0;
97} 99}
98
99ELM_MAIN() 100ELM_MAIN()
diff --git a/src/examples/efl_thread_3.c b/src/examples/efl_thread_3.c
index 1cfbacb..2b1d025 100644
--- a/src/examples/efl_thread_3.c
+++ b/src/examples/efl_thread_3.c
@@ -68,7 +68,7 @@ my_thread_mainloop_code(void *data)
68 free(inf); 68 free(inf);
69} 69}
70 70
71int 71EAPI_MAIN int
72elm_main(int argc __UNUSED__, char **argv __UNUSED__) 72elm_main(int argc __UNUSED__, char **argv __UNUSED__)
73{ 73{
74 Evas_Object *o, *bg; 74 Evas_Object *o, *bg;
@@ -95,7 +95,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
95 my_thread_new(); 95 my_thread_new();
96 96
97 elm_run(); 97 elm_run();
98 elm_shutdown();
99
98 return 0; 100 return 0;
99} 101}
100
101ELM_MAIN() 102ELM_MAIN()
diff --git a/src/examples/efl_thread_4.c b/src/examples/efl_thread_4.c
index 30841a8..517b805 100644
--- a/src/examples/efl_thread_4.c
+++ b/src/examples/efl_thread_4.c
@@ -88,7 +88,7 @@ down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, voi
88 pthread_mutex_unlock(&th_lock); 88 pthread_mutex_unlock(&th_lock);
89} 89}
90 90
91int 91EAPI_MAIN int
92elm_main(int argc __UNUSED__, char **argv __UNUSED__) 92elm_main(int argc __UNUSED__, char **argv __UNUSED__)
93{ 93{
94 Evas_Object *o, *bg; 94 Evas_Object *o, *bg;
@@ -118,7 +118,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
118 my_thread_new(); 118 my_thread_new();
119 119
120 elm_run(); 120 elm_run();
121 elm_shutdown();
122
121 return 0; 123 return 0;
122} 124}
123
124ELM_MAIN() 125ELM_MAIN()
diff --git a/src/examples/efl_thread_5.c b/src/examples/efl_thread_5.c
index 53bee89..7132eda 100644
--- a/src/examples/efl_thread_5.c
+++ b/src/examples/efl_thread_5.c
@@ -68,7 +68,7 @@ down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, voi
68 ecore_thread_cancel(thr); 68 ecore_thread_cancel(thr);
69} 69}
70 70
71int 71EAPI_MAIN int
72elm_main(int argc __UNUSED__, char **argv __UNUSED__) 72elm_main(int argc __UNUSED__, char **argv __UNUSED__)
73{ 73{
74 Evas_Object *o, *bg; 74 Evas_Object *o, *bg;
@@ -102,7 +102,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
102 thr = ecore_thread_feedback_run(th_do, th_feedback, th_end, th_cancel, 102 thr = ecore_thread_feedback_run(th_do, th_feedback, th_end, th_cancel,
103 NULL, EINA_TRUE); 103 NULL, EINA_TRUE);
104 elm_run(); 104 elm_run();
105 elm_shutdown();
106
105 return 0; 107 return 0;
106} 108}
107
108ELM_MAIN() 109ELM_MAIN()
diff --git a/src/examples/efl_thread_6.c b/src/examples/efl_thread_6.c
index 8517665..df42cd9 100644
--- a/src/examples/efl_thread_6.c
+++ b/src/examples/efl_thread_6.c
@@ -122,7 +122,7 @@ anim(void *data)
122 return EINA_TRUE; 122 return EINA_TRUE;
123} 123}
124 124
125int 125EAPI_MAIN int
126elm_main(int argc __UNUSED__, char **argv __UNUSED__) 126elm_main(int argc __UNUSED__, char **argv __UNUSED__)
127{ 127{
128 Evas_Object *o, *bg; 128 Evas_Object *o, *bg;
@@ -163,7 +163,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
163 } 163 }
164 164
165 elm_run(); 165 elm_run();
166 elm_shutdown();
167
166 return 0; 168 return 0;
167} 169}
168
169ELM_MAIN() 170ELM_MAIN()
diff --git a/src/examples/efl_thread_win32_1.c b/src/examples/efl_thread_win32_1.c
index 7cdf995..c670810 100644
--- a/src/examples/efl_thread_win32_1.c
+++ b/src/examples/efl_thread_win32_1.c
@@ -55,7 +55,7 @@ my_thread_new(void)
55 } 55 }
56} 56}
57 57
58int 58EAPI_MAIN int
59elm_main(int argc, char **argv) 59elm_main(int argc, char **argv)
60{ 60{
61 Evas_Object *o, *bg; 61 Evas_Object *o, *bg;
@@ -82,7 +82,8 @@ elm_main(int argc, char **argv)
82 my_thread_new(); 82 my_thread_new();
83 83
84 elm_run(); 84 elm_run();
85 elm_shutdown();
86
85 return 0; 87 return 0;
86} 88}
87
88ELM_MAIN() 89ELM_MAIN()
diff --git a/src/examples/efl_thread_win32_2.c b/src/examples/efl_thread_win32_2.c
index 101bfb4..cbc2796 100644
--- a/src/examples/efl_thread_win32_2.c
+++ b/src/examples/efl_thread_win32_2.c
@@ -71,7 +71,7 @@ my_thread_mainloop_code(void *data)
71 return NULL; 71 return NULL;
72} 72}
73 73
74int 74EAPI_MAIN int
75elm_main(int argc, char **argv) 75elm_main(int argc, char **argv)
76{ 76{
77 Evas_Object *o, *bg; 77 Evas_Object *o, *bg;
@@ -98,7 +98,8 @@ elm_main(int argc, char **argv)
98 my_thread_new(); 98 my_thread_new();
99 99
100 elm_run(); 100 elm_run();
101 elm_shutdown();
102
101 return 0; 103 return 0;
102} 104}
103
104ELM_MAIN() 105ELM_MAIN()
diff --git a/src/examples/efl_thread_win32_3.c b/src/examples/efl_thread_win32_3.c
index eff6fce..9b898ac 100644
--- a/src/examples/efl_thread_win32_3.c
+++ b/src/examples/efl_thread_win32_3.c
@@ -73,7 +73,7 @@ my_thread_mainloop_code(void *data)
73 free(inf); 73 free(inf);
74} 74}
75 75
76int 76EAPI_MAIN int
77elm_main(int argc, char **argv) 77elm_main(int argc, char **argv)
78{ 78{
79 Evas_Object *o, *bg; 79 Evas_Object *o, *bg;
@@ -100,7 +100,8 @@ elm_main(int argc, char **argv)
100 my_thread_new(); 100 my_thread_new();
101 101
102 elm_run(); 102 elm_run();
103 elm_shutdown();
104
103 return 0; 105 return 0;
104} 106}
105
106ELM_MAIN() 107ELM_MAIN()
diff --git a/src/examples/efl_thread_win32_4.c b/src/examples/efl_thread_win32_4.c
index f882d80..538ba71 100644
--- a/src/examples/efl_thread_win32_4.c
+++ b/src/examples/efl_thread_win32_4.c
@@ -94,7 +94,7 @@ down(void *data, Evas *e, Evas_Object *obj, void *event_info)
94 LeaveCriticalSection(&lock); 94 LeaveCriticalSection(&lock);
95} 95}
96 96
97int 97EAPI_MAIN int
98elm_main(int argc, char **argv) 98elm_main(int argc, char **argv)
99{ 99{
100 Evas_Object *o, *bg; 100 Evas_Object *o, *bg;
@@ -124,7 +124,8 @@ elm_main(int argc, char **argv)
124 my_thread_new(); 124 my_thread_new();
125 125
126 elm_run(); 126 elm_run();
127 elm_shutdown();
128
127 return 0; 129 return 0;
128} 130}
129
130ELM_MAIN() 131ELM_MAIN()
diff --git a/src/examples/entry_example.c b/src/examples/entry_example.c
index a3ab9c9..1bc55ce 100644
--- a/src/examples/entry_example.c
+++ b/src/examples/entry_example.c
@@ -494,7 +494,7 @@ _win_del_cb(void *data __UNUSED__, Evas_Object *obj, void *event __UNUSED__)
494 elm_exit(); 494 elm_exit();
495} 495}
496 496
497int 497EAPI_MAIN int
498elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 498elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
499{ 499{
500 Evas_Object *win, *bg, *box, *tb, *en, *o, *icon; 500 Evas_Object *win, *bg, *box, *tb, *en, *o, *icon;
@@ -578,7 +578,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
578 evas_object_resize(win, 300, 780); 578 evas_object_resize(win, 300, 780);
579 579
580 elm_run(); 580 elm_run();
581 elm_shutdown();
581 582
582 return 0; 583 return 0;
583} 584}
584ELM_MAIN(); 585ELM_MAIN()
diff --git a/src/examples/fileselector_button_example.c b/src/examples/fileselector_button_example.c
index fdc26bd..9cac807 100644
--- a/src/examples/fileselector_button_example.c
+++ b/src/examples/fileselector_button_example.c
@@ -179,7 +179,8 @@ elm_main(int argc __UNUSED__,
179 evas_object_show(win); 179 evas_object_show(win);
180 180
181 elm_run(); 181 elm_run();
182 elm_shutdown();
183
182 return 0; 184 return 0;
183} 185}
184
185ELM_MAIN() 186ELM_MAIN()
diff --git a/src/examples/fileselector_entry_example.c b/src/examples/fileselector_entry_example.c
index 51fdc9c..97d2cbc 100644
--- a/src/examples/fileselector_entry_example.c
+++ b/src/examples/fileselector_entry_example.c
@@ -168,7 +168,8 @@ elm_main(int argc __UNUSED__,
168 evas_object_show(win); 168 evas_object_show(win);
169 169
170 elm_run(); 170 elm_run();
171 elm_shutdown();
172
171 return 0; 173 return 0;
172} 174}
173
174ELM_MAIN() 175ELM_MAIN()
diff --git a/src/examples/fileselector_example.c b/src/examples/fileselector_example.c
index b56985d..297ee77 100644
--- a/src/examples/fileselector_example.c
+++ b/src/examples/fileselector_example.c
@@ -238,7 +238,8 @@ elm_main(int argc __UNUSED__,
238 evas_object_show(win); 238 evas_object_show(win);
239 239
240 elm_run(); 240 elm_run();
241 elm_shutdown();
242
241 return 0; 243 return 0;
242} 244}
243
244ELM_MAIN() 245ELM_MAIN()
diff --git a/src/examples/flip_example_01.c b/src/examples/flip_example_01.c
index 95e84e2..f205e23 100644
--- a/src/examples/flip_example_01.c
+++ b/src/examples/flip_example_01.c
@@ -82,6 +82,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
82 evas_object_show(win); 82 evas_object_show(win);
83 83
84 elm_run(); 84 elm_run();
85 elm_shutdown();
85 86
86 return 0; 87 return 0;
87} 88}
diff --git a/src/examples/flipselector_example.c b/src/examples/flipselector_example.c
index 417490f..504116b 100644
--- a/src/examples/flipselector_example.c
+++ b/src/examples/flipselector_example.c
@@ -204,6 +204,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
204 204
205 fprintf(stdout, "%s", commands); 205 fprintf(stdout, "%s", commands);
206 elm_run(); 206 elm_run();
207 elm_shutdown();
208
207 return 0; 209 return 0;
208} 210}
209ELM_MAIN() 211ELM_MAIN()
diff --git a/src/examples/frame_example_01.c b/src/examples/frame_example_01.c
index dc0b6ca..ee0a40c 100644
--- a/src/examples/frame_example_01.c
+++ b/src/examples/frame_example_01.c
@@ -75,11 +75,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
75 evas_object_show(win); 75 evas_object_show(win);
76 76
77 elm_run(); 77 elm_run();
78 78 elm_shutdown();
79 evas_object_del(r1);
80 evas_object_del(r2);
81 evas_object_del(r3);
82 evas_object_del(r4);
83 79
84 return 0; 80 return 0;
85} 81}
diff --git a/src/examples/general_funcs_example.c b/src/examples/general_funcs_example.c
index 70aee4b..225b8e0 100644
--- a/src/examples/general_funcs_example.c
+++ b/src/examples/general_funcs_example.c
@@ -68,7 +68,7 @@ _btn_scale_cb(void *data __UNUSED__,
68 elm_object_scale_set(d.btn, elm_slider_value_get(obj)); 68 elm_object_scale_set(d.btn, elm_slider_value_get(obj));
69} 69}
70 70
71int 71EAPI_MAIN int
72elm_main(int argc __UNUSED__, 72elm_main(int argc __UNUSED__,
73 char **argv __UNUSED__) 73 char **argv __UNUSED__)
74{ 74{
@@ -190,5 +190,4 @@ elm_main(int argc __UNUSED__,
190 /* exit code */ 190 /* exit code */
191 return 0; 191 return 0;
192} 192}
193
194ELM_MAIN() 193ELM_MAIN()
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index d55daba..b85378b 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -425,7 +425,7 @@ _page_change_cb(void *data,
425 fprintf(stdout, "Setting grid page's relative size to %f\n", val); 425 fprintf(stdout, "Setting grid page's relative size to %f\n", val);
426} 426}
427 427
428int 428EAPI_MAIN int
429elm_main(int argc __UNUSED__, 429elm_main(int argc __UNUSED__,
430 char **argv __UNUSED__) 430 char **argv __UNUSED__)
431{ 431{
@@ -628,7 +628,8 @@ elm_main(int argc __UNUSED__,
628 evas_object_show(win); 628 evas_object_show(win);
629 629
630 elm_run(); 630 elm_run();
631 elm_shutdown();
632
631 return 0; 633 return 0;
632} 634}
633
634ELM_MAIN() 635ELM_MAIN()
diff --git a/src/examples/genlist_example_01.c b/src/examples/genlist_example_01.c
index da5d9ad..3ee6a8d 100644
--- a/src/examples/genlist_example_01.c
+++ b/src/examples/genlist_example_01.c
@@ -39,7 +39,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
39 data, obj, event_info); 39 data, obj, event_info);
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; 45 Evas_Object *win, *bg;
@@ -87,8 +87,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
87 evas_object_show(win); 87 evas_object_show(win);
88 88
89 elm_run(); 89 elm_run();
90 elm_shutdown();
90 91
91 return 0; 92 return 0;
92} 93}
93
94ELM_MAIN() 94ELM_MAIN()
diff --git a/src/examples/genlist_example_02.c b/src/examples/genlist_example_02.c
index 6f72cc1..6323c6e 100644
--- a/src/examples/genlist_example_02.c
+++ b/src/examples/genlist_example_02.c
@@ -88,7 +88,7 @@ _realize_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
88 elm_genlist_realized_items_update(list); 88 elm_genlist_realized_items_update(list);
89} 89}
90 90
91int 91EAPI_MAIN int
92elm_main(int argc __UNUSED__, char **argv __UNUSED__) 92elm_main(int argc __UNUSED__, char **argv __UNUSED__)
93{ 93{
94 Evas_Object *win, *bg, *box, *hbox; 94 Evas_Object *win, *bg, *box, *hbox;
@@ -201,8 +201,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
201 evas_object_show(win); 201 evas_object_show(win);
202 202
203 elm_run(); 203 elm_run();
204 elm_shutdown();
204 205
205 return 0; 206 return 0;
206} 207}
207
208ELM_MAIN() 208ELM_MAIN()
diff --git a/src/examples/genlist_example_03.c b/src/examples/genlist_example_03.c
index ec25ced..755c900 100644
--- a/src/examples/genlist_example_03.c
+++ b/src/examples/genlist_example_03.c
@@ -78,7 +78,7 @@ _genlist_fill(Evas_Object *list)
78 } 78 }
79} 79}
80 80
81int 81EAPI_MAIN int
82elm_main(int argc __UNUSED__, char **argv __UNUSED__) 82elm_main(int argc __UNUSED__, char **argv __UNUSED__)
83{ 83{
84 Evas_Object *win, *bg, *box; 84 Evas_Object *win, *bg, *box;
@@ -129,8 +129,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
129 evas_object_show(win); 129 evas_object_show(win);
130 130
131 elm_run(); 131 elm_run();
132 elm_shutdown();
132 133
133 return 0; 134 return 0;
134} 135}
135
136ELM_MAIN() 136ELM_MAIN()
diff --git a/src/examples/genlist_example_04.c b/src/examples/genlist_example_04.c
index 0c40330..785e7f4 100644
--- a/src/examples/genlist_example_04.c
+++ b/src/examples/genlist_example_04.c
@@ -236,7 +236,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
236 return bt; 236 return bt;
237} 237}
238 238
239int 239EAPI_MAIN int
240elm_main(int argc __UNUSED__, char **argv __UNUSED__) 240elm_main(int argc __UNUSED__, char **argv __UNUSED__)
241{ 241{
242 Evas_Object *win, *bg, *box, *fbox; 242 Evas_Object *win, *bg, *box, *fbox;
@@ -362,8 +362,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
362 evas_object_show(win); 362 evas_object_show(win);
363 363
364 elm_run(); 364 elm_run();
365 elm_shutdown();
365 366
366 return 0; 367 return 0;
367} 368}
368
369ELM_MAIN() 369ELM_MAIN()
diff --git a/src/examples/genlist_example_05.c b/src/examples/genlist_example_05.c
index ad33157..850c1c1 100644
--- a/src/examples/genlist_example_05.c
+++ b/src/examples/genlist_example_05.c
@@ -307,7 +307,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
307 return bt; 307 return bt;
308} 308}
309 309
310int 310EAPI_MAIN int
311elm_main(int argc __UNUSED__, char **argv __UNUSED__) 311elm_main(int argc __UNUSED__, char **argv __UNUSED__)
312{ 312{
313 Evas_Object *win, *bg, *box, *fbox; 313 Evas_Object *win, *bg, *box, *fbox;
@@ -340,7 +340,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
340 _itc->func.state_get = NULL; 340 _itc->func.state_get = NULL;
341 _itc->func.del = NULL; 341 _itc->func.del = NULL;
342 } 342 }
343 343
344 if (!_itp) 344 if (!_itp)
345 { 345 {
346 _itp = elm_genlist_item_class_new(); 346 _itp = elm_genlist_item_class_new();
@@ -350,7 +350,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
350 _itp->func.state_get = NULL; 350 _itp->func.state_get = NULL;
351 _itp->func.del = NULL; 351 _itp->func.del = NULL;
352 } 352 }
353 353
354 if (!_itfav) 354 if (!_itfav)
355 { 355 {
356 _itfav = elm_genlist_item_class_new(); 356 _itfav = elm_genlist_item_class_new();
@@ -423,8 +423,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
423 evas_object_show(win); 423 evas_object_show(win);
424 424
425 elm_run(); 425 elm_run();
426 elm_shutdown();
426 427
427 return 0; 428 return 0;
428} 429}
429
430ELM_MAIN() 430ELM_MAIN()
diff --git a/src/examples/glview_example_01.c b/src/examples/glview_example_01.c
index 3e06a51..e196393 100644
--- a/src/examples/glview_example_01.c
+++ b/src/examples/glview_example_01.c
@@ -245,7 +245,7 @@ _del(void *data, Evas *evas, Evas_Object *obj, void *event_info)
245} 245}
246 246
247 247
248EAPI int 248EAPI_MAIN int
249elm_main(int argc, char **argv) 249elm_main(int argc, char **argv)
250{ 250{
251 Evas_Object *win, *bg, *bx, *bt, *gl; 251 Evas_Object *win, *bg, *bx, *bt, *gl;
@@ -332,6 +332,8 @@ elm_main(int argc, char **argv)
332 332
333 // run the mainloop and process events and callbacks 333 // run the mainloop and process events and callbacks
334 elm_run(); 334 elm_run();
335 elm_shutdown();
336
335 return 0; 337 return 0;
336} 338}
337ELM_MAIN() 339ELM_MAIN()
diff --git a/src/examples/hover_example_01.c b/src/examples/hover_example_01.c
index 25dbc10..536ecd0 100644
--- a/src/examples/hover_example_01.c
+++ b/src/examples/hover_example_01.c
@@ -78,6 +78,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
78 evas_object_show(win); 78 evas_object_show(win);
79 79
80 elm_run(); 80 elm_run();
81 elm_shutdown();
81 82
82 return 0; 83 return 0;
83} 84}
diff --git a/src/examples/hoversel_example_01.c b/src/examples/hoversel_example_01.c
index de053cd..14614ce 100644
--- a/src/examples/hoversel_example_01.c
+++ b/src/examples/hoversel_example_01.c
@@ -56,6 +56,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
56 56
57 57
58 elm_run(); 58 elm_run();
59 elm_shutdown();
59 60
60 return 0; 61 return 0;
61} 62}
diff --git a/src/examples/icon_example_01.c b/src/examples/icon_example_01.c
index 8fc365d..5566ebe 100644
--- a/src/examples/icon_example_01.c
+++ b/src/examples/icon_example_01.c
@@ -9,7 +9,7 @@
9# define PACKAGE_DATA_DIR "." 9# define PACKAGE_DATA_DIR "."
10#endif 10#endif
11 11
12int 12EAPI_MAIN int
13elm_main(int argc __UNUSED__, char **argv __UNUSED__) 13elm_main(int argc __UNUSED__, char **argv __UNUSED__)
14{ 14{
15 Evas_Object *win, *bg, *icon; 15 Evas_Object *win, *bg, *icon;
@@ -52,8 +52,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
52 evas_object_show(win); 52 evas_object_show(win);
53 53
54 elm_run(); 54 elm_run();
55 elm_shutdown();
55 56
56 return 0; 57 return 0;
57} 58}
58
59ELM_MAIN() 59ELM_MAIN()
diff --git a/src/examples/image_example_01.c b/src/examples/image_example_01.c
index f3b2652..da52bf0 100644
--- a/src/examples/image_example_01.c
+++ b/src/examples/image_example_01.c
@@ -53,8 +53,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
53 evas_object_show(win); 53 evas_object_show(win);
54 54
55 elm_run(); 55 elm_run();
56 elm_shutdown();
56 57
57 return 0; 58 return 0;
58} 59}
59
60ELM_MAIN() 60ELM_MAIN()
diff --git a/src/examples/index_example_01.c b/src/examples/index_example_01.c
index 1a49ae0..dca66d7 100644
--- a/src/examples/index_example_01.c
+++ b/src/examples/index_example_01.c
@@ -111,7 +111,7 @@ _on_done(void *data __UNUSED__,
111 elm_exit(); 111 elm_exit();
112} 112}
113 113
114int 114EAPI_MAIN int
115elm_main(int argc __UNUSED__, 115elm_main(int argc __UNUSED__,
116 char **argv __UNUSED__) 116 char **argv __UNUSED__)
117{ 117{
@@ -207,7 +207,8 @@ elm_main(int argc __UNUSED__,
207 evas_object_show(win); 207 evas_object_show(win);
208 208
209 elm_run(); 209 elm_run();
210 elm_shutdown();
211
210 return 0; 212 return 0;
211} 213}
212
213ELM_MAIN() 214ELM_MAIN()
diff --git a/src/examples/index_example_02.c b/src/examples/index_example_02.c
index 253ec30..b9d9d7b 100644
--- a/src/examples/index_example_02.c
+++ b/src/examples/index_example_02.c
@@ -92,7 +92,7 @@ _index_icmp(const void *data1,
92 return strcasecmp(label1, label2); 92 return strcasecmp(label1, label2);
93} 93}
94 94
95int 95EAPI_MAIN int
96elm_main(int argc __UNUSED__, 96elm_main(int argc __UNUSED__,
97 char **argv __UNUSED__) 97 char **argv __UNUSED__)
98{ 98{
@@ -149,7 +149,8 @@ elm_main(int argc __UNUSED__,
149 elm_index_autohide_disabled_set(idx, EINA_FALSE); 149 elm_index_autohide_disabled_set(idx, EINA_FALSE);
150 150
151 elm_run(); 151 elm_run();
152 elm_shutdown();
153
152 return 0; 154 return 0;
153} 155}
154
155ELM_MAIN() 156ELM_MAIN()
diff --git a/src/examples/inwin_example.c b/src/examples/inwin_example.c
index 7ec74ae..1bd78dc 100644
--- a/src/examples/inwin_example.c
+++ b/src/examples/inwin_example.c
@@ -113,7 +113,7 @@ _screenshot_hack_cb(void *data)
113 return EINA_FALSE; 113 return EINA_FALSE;
114} 114}
115 115
116int 116EAPI_MAIN int
117elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 117elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
118{ 118{
119 Evas_Object *win, *bg, *box, *o; 119 Evas_Object *win, *bg, *box, *o;
@@ -150,7 +150,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
150 ecore_timer_add(0.1, _screenshot_hack_cb, o); 150 ecore_timer_add(0.1, _screenshot_hack_cb, o);
151 151
152 elm_run(); 152 elm_run();
153 elm_shutdown();
153 154
154 return 0; 155 return 0;
155} 156}
156ELM_MAIN(); 157ELM_MAIN()
diff --git a/src/examples/label_example_01.c b/src/examples/label_example_01.c
index 89ed296..c8a4e4a 100644
--- a/src/examples/label_example_01.c
+++ b/src/examples/label_example_01.c
@@ -78,6 +78,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
78 evas_object_show(win); 78 evas_object_show(win);
79 79
80 elm_run(); 80 elm_run();
81 elm_shutdown();
81 82
82 return 0; 83 return 0;
83} 84}
diff --git a/src/examples/layout_example_01.c b/src/examples/layout_example_01.c
index b550972..4b959e2 100644
--- a/src/examples/layout_example_01.c
+++ b/src/examples/layout_example_01.c
@@ -56,7 +56,7 @@ _swallow_btn_cb(void *data, Evas_Object *btn __UNUSED__, void *event_info __UNUS
56 evas_object_del(item); 56 evas_object_del(item);
57} 57}
58 58
59int 59EAPI_MAIN int
60elm_main(int argc __UNUSED__, char **argv __UNUSED__) 60elm_main(int argc __UNUSED__, char **argv __UNUSED__)
61{ 61{
62 Evas_Object *win, *bg, *icon, *icon2, *bt, *bt2, *layout; 62 Evas_Object *win, *bg, *icon, *icon2, *bt, *bt2, *layout;
@@ -148,8 +148,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
148 evas_object_show(win); 148 evas_object_show(win);
149 149
150 elm_run(); 150 elm_run();
151 elm_shutdown();
151 152
152 return 0; 153 return 0;
153} 154}
154
155ELM_MAIN() 155ELM_MAIN()
diff --git a/src/examples/layout_example_02.c b/src/examples/layout_example_02.c
index ad81d65..c9cd405 100644
--- a/src/examples/layout_example_02.c
+++ b/src/examples/layout_example_02.c
@@ -40,7 +40,7 @@ _signal_cb(void *data, Evas_Object *o, const char *emission, const char *source
40 elm_icon_standard_set(icon, images[app->current]); 40 elm_icon_standard_set(icon, images[app->current]);
41} 41}
42 42
43int 43EAPI_MAIN int
44elm_main(int argc __UNUSED__, char **argv __UNUSED__) 44elm_main(int argc __UNUSED__, char **argv __UNUSED__)
45{ 45{
46 Evas_Object *win, *bg, *layout, *icon; 46 Evas_Object *win, *bg, *layout, *icon;
@@ -81,8 +81,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
81 evas_object_show(win); 81 evas_object_show(win);
82 82
83 elm_run(); 83 elm_run();
84 elm_shutdown();
84 85
85 return 0; 86 return 0;
86} 87}
87
88ELM_MAIN() 88ELM_MAIN()
diff --git a/src/examples/layout_example_03.c b/src/examples/layout_example_03.c
index ec27e80..be70c98 100644
--- a/src/examples/layout_example_03.c
+++ b/src/examples/layout_example_03.c
@@ -45,7 +45,7 @@ _size_changed_cb(void *data __UNUSED__, Evas_Object *layout, const char *emissio
45 printf("Minimum size for this theme: %dx%d\n", w, h); 45 printf("Minimum size for this theme: %dx%d\n", w, h);
46} 46}
47 47
48int 48EAPI_MAIN int
49elm_main(int argc __UNUSED__, char **argv __UNUSED__) 49elm_main(int argc __UNUSED__, char **argv __UNUSED__)
50{ 50{
51 Evas_Object *win, *bg, *btn, *layout; 51 Evas_Object *win, *bg, *btn, *layout;
@@ -92,8 +92,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
92 evas_object_show(win); 92 evas_object_show(win);
93 93
94 elm_run(); 94 elm_run();
95 elm_shutdown();
95 96
96 return 0; 97 return 0;
97} 98}
98
99ELM_MAIN() 99ELM_MAIN()
diff --git a/src/examples/list_example_01.c b/src/examples/list_example_01.c
index 300a745..f495c95 100644
--- a/src/examples/list_example_01.c
+++ b/src/examples/list_example_01.c
@@ -69,6 +69,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
69 evas_object_show(win); 69 evas_object_show(win);
70 70
71 elm_run(); 71 elm_run();
72 elm_shutdown();
73
72 return 0; 74 return 0;
73} 75}
74ELM_MAIN() 76ELM_MAIN()
diff --git a/src/examples/list_example_02.c b/src/examples/list_example_02.c
index 4d52882..9c557ea 100644
--- a/src/examples/list_example_02.c
+++ b/src/examples/list_example_02.c
@@ -83,6 +83,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
83 evas_object_show(win); 83 evas_object_show(win);
84 84
85 elm_run(); 85 elm_run();
86 elm_shutdown();
87
86 return 0; 88 return 0;
87} 89}
88ELM_MAIN() 90ELM_MAIN()
diff --git a/src/examples/list_example_03.c b/src/examples/list_example_03.c
index 3875e20..725aff1 100644
--- a/src/examples/list_example_03.c
+++ b/src/examples/list_example_03.c
@@ -439,6 +439,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
439 evas_object_show(win); 439 evas_object_show(win);
440 440
441 elm_run(); 441 elm_run();
442 elm_shutdown();
443
442 return 0; 444 return 0;
443} 445}
444ELM_MAIN() 446ELM_MAIN()
diff --git a/src/examples/map_example_01.c b/src/examples/map_example_01.c
index 6339745..f76f125 100644
--- a/src/examples/map_example_01.c
+++ b/src/examples/map_example_01.c
@@ -119,6 +119,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
119 ecore_timer_add(0.5, _nasty_hack, win); 119 ecore_timer_add(0.5, _nasty_hack, win);
120 120
121 elm_run(); 121 elm_run();
122 elm_shutdown();
123
122 return 0; 124 return 0;
123} 125}
124ELM_MAIN() 126ELM_MAIN()
diff --git a/src/examples/map_example_02.c b/src/examples/map_example_02.c
index e0c9215..e6120f1 100644
--- a/src/examples/map_example_02.c
+++ b/src/examples/map_example_02.c
@@ -256,6 +256,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
256 ecore_timer_add(1, _nasty_hack, win); 256 ecore_timer_add(1, _nasty_hack, win);
257 257
258 elm_run(); 258 elm_run();
259 elm_shutdown();
260
259 return 0; 261 return 0;
260} 262}
261ELM_MAIN() 263ELM_MAIN()
diff --git a/src/examples/map_example_03.c b/src/examples/map_example_03.c
index e9e540f..b1f5f8b 100644
--- a/src/examples/map_example_03.c
+++ b/src/examples/map_example_03.c
@@ -206,6 +206,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
206 ecore_timer_add(0.5, _nasty_hack, win); 206 ecore_timer_add(0.5, _nasty_hack, win);
207 207
208 elm_run(); 208 elm_run();
209 elm_shutdown();
210
209 return 0; 211 return 0;
210} 212}
211ELM_MAIN() 213ELM_MAIN()
diff --git a/src/examples/mapbuf_example.c b/src/examples/mapbuf_example.c
index b5637b6..ce00cac 100644
--- a/src/examples/mapbuf_example.c
+++ b/src/examples/mapbuf_example.c
@@ -124,6 +124,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
124 evas_object_show(win); 124 evas_object_show(win);
125 125
126 elm_run(); 126 elm_run();
127 elm_shutdown();
128
127 return 0; 129 return 0;
128} 130}
129ELM_MAIN() 131ELM_MAIN()
diff --git a/src/examples/menu_example_01.c b/src/examples/menu_example_01.c
index c3d9ec5..f3a75f3 100644
--- a/src/examples/menu_example_01.c
+++ b/src/examples/menu_example_01.c
@@ -71,6 +71,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
71 evas_object_show(win); 71 evas_object_show(win);
72 72
73 elm_run(); 73 elm_run();
74 elm_shutdown();
74 75
75 return 0; 76 return 0;
76} 77}
diff --git a/src/examples/notify_example_01.c b/src/examples/notify_example_01.c
index 2386960..87ab6ed 100644
--- a/src/examples/notify_example_01.c
+++ b/src/examples/notify_example_01.c
@@ -71,6 +71,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
71 evas_object_show(win); 71 evas_object_show(win);
72 72
73 elm_run(); 73 elm_run();
74 elm_shutdown();
74 75
75 return 0; 76 return 0;
76} 77}
diff --git a/src/examples/panel_example_01.c b/src/examples/panel_example_01.c
index edd3d32..cfe6b40 100644
--- a/src/examples/panel_example_01.c
+++ b/src/examples/panel_example_01.c
@@ -73,6 +73,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
73 evas_object_show(win); 73 evas_object_show(win);
74 74
75 elm_run(); 75 elm_run();
76 elm_shutdown();
76 77
77 return 0; 78 return 0;
78} 79}
diff --git a/src/examples/panes_example.c b/src/examples/panes_example.c
index f9bbc08..e5ee156 100644
--- a/src/examples/panes_example.c
+++ b/src/examples/panes_example.c
@@ -60,7 +60,7 @@ _clicked_double(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUS
60 } 60 }
61} 61}
62 62
63int 63EAPI_MAIN int
64elm_main(int argc __UNUSED__, char **argv __UNUSED__) 64elm_main(int argc __UNUSED__, char **argv __UNUSED__)
65{ 65{
66 Evas_Object *win, *bg, *panes, *panes_h, *bt; 66 Evas_Object *win, *bg, *panes, *panes_h, *bt;
@@ -120,6 +120,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
120 evas_object_show(win); 120 evas_object_show(win);
121 121
122 elm_run(); 122 elm_run();
123 elm_shutdown();
124
123 return 0; 125 return 0;
124} 126}
125ELM_MAIN() 127ELM_MAIN()
diff --git a/src/examples/photocam_example_01.c b/src/examples/photocam_example_01.c
index 518b0a1..a63fef3 100644
--- a/src/examples/photocam_example_01.c
+++ b/src/examples/photocam_example_01.c
@@ -61,6 +61,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
61 evas_object_show(win); 61 evas_object_show(win);
62 62
63 elm_run(); 63 elm_run();
64 elm_shutdown();
64 65
65 return 0; 66 return 0;
66} 67}
diff --git a/src/examples/popup_example_01.c b/src/examples/popup_example_01.c
index 1d0747f..7cdcf67 100644
--- a/src/examples/popup_example_01.c
+++ b/src/examples/popup_example_01.c
@@ -46,6 +46,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
46 evas_object_resize(win, 480, 800); 46 evas_object_resize(win, 480, 800);
47 47
48 elm_run(); 48 elm_run();
49 elm_shutdown();
49 50
50 return 0; 51 return 0;
51} 52}
diff --git a/src/examples/popup_example_02.c b/src/examples/popup_example_02.c
index 48d0eba..886010f 100644
--- a/src/examples/popup_example_02.c
+++ b/src/examples/popup_example_02.c
@@ -73,10 +73,12 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
73 evas_object_show(win); 73 evas_object_show(win);
74 74
75 elm_run(); 75 elm_run();
76 elm_shutdown();
76 77
77 return 0; 78 return 0;
78} 79}
79ELM_MAIN() 80ELM_MAIN()
81
80static void 82static void
81_response_cb(void *data, Evas_Object *obj __UNUSED__, 83_response_cb(void *data, Evas_Object *obj __UNUSED__,
82 void *event_info __UNUSED__) 84 void *event_info __UNUSED__)
diff --git a/src/examples/popup_example_03.c b/src/examples/popup_example_03.c
index 1f6993a..6bb4198 100644
--- a/src/examples/popup_example_03.c
+++ b/src/examples/popup_example_03.c
@@ -83,6 +83,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
83 evas_object_show(win); 83 evas_object_show(win);
84 84
85 elm_run(); 85 elm_run();
86 elm_shutdown();
86 87
87 return 0; 88 return 0;
88} 89}
diff --git a/src/examples/progressbar_example.c b/src/examples/progressbar_example.c
index 5a7ef9b..9791961 100644
--- a/src/examples/progressbar_example.c
+++ b/src/examples/progressbar_example.c
@@ -96,7 +96,7 @@ _on_done(void *data __UNUSED__,
96 elm_exit(); 96 elm_exit();
97} 97}
98 98
99int 99EAPI_MAIN int
100elm_main(int argc __UNUSED__, 100elm_main(int argc __UNUSED__,
101 char **argv __UNUSED__) 101 char **argv __UNUSED__)
102{ 102{
@@ -236,7 +236,8 @@ elm_main(int argc __UNUSED__,
236 evas_object_show(win); 236 evas_object_show(win);
237 237
238 elm_run(); 238 elm_run();
239 elm_shutdown();
240
239 return 0; 241 return 0;
240} 242}
241
242ELM_MAIN() 243ELM_MAIN()
diff --git a/src/examples/radio_example_01.c b/src/examples/radio_example_01.c
index 55dec3a..b030d5d 100644
--- a/src/examples/radio_example_01.c
+++ b/src/examples/radio_example_01.c
@@ -82,6 +82,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
82 evas_object_show(win); 82 evas_object_show(win);
83 83
84 elm_run(); 84 elm_run();
85 elm_shutdown();
85 86
86 return 0; 87 return 0;
87} 88}
diff --git a/src/examples/scroller_example_01.c b/src/examples/scroller_example_01.c
index 5d1758d..4239f05 100644
--- a/src/examples/scroller_example_01.c
+++ b/src/examples/scroller_example_01.c
@@ -140,6 +140,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
140 evas_object_show(win); 140 evas_object_show(win);
141 141
142 elm_run(); 142 elm_run();
143 elm_shutdown();
143 144
144 return 0; 145 return 0;
145} 146}
diff --git a/src/examples/segment_control_example.c b/src/examples/segment_control_example.c
index c527c2e..cc5b3ca 100644
--- a/src/examples/segment_control_example.c
+++ b/src/examples/segment_control_example.c
@@ -24,7 +24,7 @@ _on_done(void *data __UNUSED__,
24 elm_exit(); 24 elm_exit();
25} 25}
26 26
27int 27EAPI_MAIN int
28elm_main(int argc __UNUSED__, char **argv __UNUSED__) 28elm_main(int argc __UNUSED__, char **argv __UNUSED__)
29{ 29{
30 Evas_Object *win, *bg, *sc, *ic; 30 Evas_Object *win, *bg, *sc, *ic;
@@ -81,6 +81,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
81 evas_object_show(win); 81 evas_object_show(win);
82 82
83 elm_run(); 83 elm_run();
84 elm_shutdown();
85
84 return 0; 86 return 0;
85} 87}
86ELM_MAIN() 88ELM_MAIN()
diff --git a/src/examples/separator_example_01.c b/src/examples/separator_example_01.c
index 68638e6..937838d 100644
--- a/src/examples/separator_example_01.c
+++ b/src/examples/separator_example_01.c
@@ -53,6 +53,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
53 evas_object_show(win); 53 evas_object_show(win);
54 54
55 elm_run(); 55 elm_run();
56 elm_shutdown();
56 57
57 return 0; 58 return 0;
58} 59}
diff --git a/src/examples/slider_example.c b/src/examples/slider_example.c
index 92a04f9..b19a662 100644
--- a/src/examples/slider_example.c
+++ b/src/examples/slider_example.c
@@ -52,7 +52,7 @@ _indicator_free(char *str)
52 free(str); 52 free(str);
53} 53}
54 54
55int 55EAPI_MAIN int
56elm_main(int argc __UNUSED__, char **argv __UNUSED__) 56elm_main(int argc __UNUSED__, char **argv __UNUSED__)
57{ 57{
58 Evas_Object *win, *bg, *bx, *sl, *ic; 58 Evas_Object *win, *bg, *bx, *sl, *ic;
@@ -147,6 +147,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
147 evas_object_show(win); 147 evas_object_show(win);
148 148
149 elm_run(); 149 elm_run();
150 elm_shutdown();
151
150 return 0; 152 return 0;
151} 153}
152ELM_MAIN() 154ELM_MAIN()
diff --git a/src/examples/slideshow_example.c b/src/examples/slideshow_example.c
index 4d2ba3d..a44768e 100644
--- a/src/examples/slideshow_example.c
+++ b/src/examples/slideshow_example.c
@@ -179,7 +179,7 @@ _cmp_func(const void *data1,
179 return strcasecmp(img_path1, img_path2); 179 return strcasecmp(img_path1, img_path2);
180} 180}
181 181
182int 182EAPI_MAIN int
183elm_main(int argc __UNUSED__, 183elm_main(int argc __UNUSED__,
184 char **argv __UNUSED__) 184 char **argv __UNUSED__)
185{ 185{
@@ -317,7 +317,8 @@ elm_main(int argc __UNUSED__,
317 _notify_show(notify, NULL, NULL, NULL); 317 _notify_show(notify, NULL, NULL, NULL);
318 318
319 elm_run(); 319 elm_run();
320 elm_shutdown();
321
320 return 0; 322 return 0;
321} 323}
322
323ELM_MAIN() 324ELM_MAIN()
diff --git a/src/examples/spinner_example.c b/src/examples/spinner_example.c
index 10dcf9d..8990b12 100644
--- a/src/examples/spinner_example.c
+++ b/src/examples/spinner_example.c
@@ -36,7 +36,7 @@ _delay_changed_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info __UN
36 printf("Value delay changed to %0.f\n", elm_spinner_value_get(obj)); 36 printf("Value delay changed to %0.f\n", elm_spinner_value_get(obj));
37} 37}
38 38
39int 39EAPI_MAIN int
40elm_main(int argc __UNUSED__, char **argv __UNUSED__) 40elm_main(int argc __UNUSED__, char **argv __UNUSED__)
41{ 41{
42 Evas_Object *win, *bg, *bx, *sp; 42 Evas_Object *win, *bg, *bx, *sp;
@@ -130,6 +130,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
130 evas_object_show(win); 130 evas_object_show(win);
131 131
132 elm_run(); 132 elm_run();
133 elm_shutdown();
134
133 return 0; 135 return 0;
134} 136}
135ELM_MAIN() 137ELM_MAIN()
diff --git a/src/examples/table_example_01.c b/src/examples/table_example_01.c
index 6b4e8e0..1e5ae04 100644
--- a/src/examples/table_example_01.c
+++ b/src/examples/table_example_01.c
@@ -51,6 +51,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
51 evas_object_show(win); 51 evas_object_show(win);
52 52
53 elm_run(); 53 elm_run();
54 elm_shutdown();
54 55
55 return 0; 56 return 0;
56} 57}
diff --git a/src/examples/table_example_02.c b/src/examples/table_example_02.c
index a6b20c8..1e28685 100644
--- a/src/examples/table_example_02.c
+++ b/src/examples/table_example_02.c
@@ -54,6 +54,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
54 evas_object_show(win); 54 evas_object_show(win);
55 55
56 elm_run(); 56 elm_run();
57 elm_shutdown();
57 58
58 return 0; 59 return 0;
59} 60}
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()
diff --git a/src/examples/theme_example_02.c b/src/examples/theme_example_02.c
index 8ac2d07..244eabd 100644
--- a/src/examples/theme_example_02.c
+++ b/src/examples/theme_example_02.c
@@ -19,7 +19,7 @@ _btn_clicked_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *ev __U
19 loaded = 1 - loaded; 19 loaded = 1 - loaded;
20} 20}
21 21
22int 22EAPI_MAIN int
23elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 23elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
24{ 24{
25 Evas_Object *win, *bg, *box, *btn; 25 Evas_Object *win, *bg, *box, *btn;
@@ -68,7 +68,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
68 evas_object_smart_callback_add(btn, "clicked", _btn_clicked_cb, NULL); 68 evas_object_smart_callback_add(btn, "clicked", _btn_clicked_cb, NULL);
69 69
70 elm_run(); 70 elm_run();
71 elm_shutdown();
71 72
72 return 0; 73 return 0;
73} 74}
74ELM_MAIN(); 75ELM_MAIN()
diff --git a/src/examples/thumb_example_01.c b/src/examples/thumb_example_01.c
index 5891672..e6f0326 100644
--- a/src/examples/thumb_example_01.c
+++ b/src/examples/thumb_example_01.c
@@ -27,7 +27,7 @@ _generation_error_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *eve
27 printf("thumbnail generation error.\n"); 27 printf("thumbnail generation error.\n");
28} 28}
29 29
30int 30EAPI_MAIN int
31elm_main(int argc __UNUSED__, char **argv __UNUSED__) 31elm_main(int argc __UNUSED__, char **argv __UNUSED__)
32{ 32{
33#if 0 33#if 0
@@ -83,5 +83,4 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
83 /* exit code */ 83 /* exit code */
84 return 0; 84 return 0;
85} 85}
86
87ELM_MAIN() 86ELM_MAIN()
diff --git a/src/examples/toolbar_example_01.c b/src/examples/toolbar_example_01.c
index a5e6b03..855627f 100644
--- a/src/examples/toolbar_example_01.c
+++ b/src/examples/toolbar_example_01.c
@@ -95,6 +95,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
95 evas_object_show(win); 95 evas_object_show(win);
96 96
97 elm_run(); 97 elm_run();
98 elm_shutdown();
99
98 return 0; 100 return 0;
99} 101}
100ELM_MAIN() 102ELM_MAIN()
diff --git a/src/examples/toolbar_example_02.c b/src/examples/toolbar_example_02.c
index 58d5858..5e0437b 100644
--- a/src/examples/toolbar_example_02.c
+++ b/src/examples/toolbar_example_02.c
@@ -86,6 +86,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
86 evas_object_show(win); 86 evas_object_show(win);
87 87
88 elm_run(); 88 elm_run();
89 elm_shutdown();
90
89 return 0; 91 return 0;
90} 92}
91ELM_MAIN() 93ELM_MAIN()
diff --git a/src/examples/toolbar_example_03.c b/src/examples/toolbar_example_03.c
index a5fef05..0314629 100644
--- a/src/examples/toolbar_example_03.c
+++ b/src/examples/toolbar_example_03.c
@@ -79,6 +79,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
79 evas_object_show(win); 79 evas_object_show(win);
80 80
81 elm_run(); 81 elm_run();
82 elm_shutdown();
83
82 return 0; 84 return 0;
83} 85}
84ELM_MAIN() 86ELM_MAIN()
diff --git a/src/examples/transit_example_01.c b/src/examples/transit_example_01.c
index f6c93dc..a18b15c 100644
--- a/src/examples/transit_example_01.c
+++ b/src/examples/transit_example_01.c
@@ -15,7 +15,7 @@ on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __U
15 elm_exit(); 15 elm_exit();
16} 16}
17 17
18int 18EAPI_MAIN int
19elm_main(int argc __UNUSED__, char **argv __UNUSED__) 19elm_main(int argc __UNUSED__, char **argv __UNUSED__)
20{ 20{
21 Evas_Object *win, *bg, *bt; 21 Evas_Object *win, *bg, *bt;
@@ -50,8 +50,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
50 elm_transit_go(trans); 50 elm_transit_go(trans);
51 51
52 elm_run(); 52 elm_run();
53 elm_shutdown();
53 54
54 return 0; 55 return 0;
55} 56}
56
57ELM_MAIN() 57ELM_MAIN()
diff --git a/src/examples/transit_example_02.c b/src/examples/transit_example_02.c
index 96aa12b..28695a5 100644
--- a/src/examples/transit_example_02.c
+++ b/src/examples/transit_example_02.c
@@ -8,7 +8,7 @@
8# define __UNUSED__ 8# define __UNUSED__
9#endif 9#endif
10 10
11int 11EAPI_MAIN int
12elm_main(int argc __UNUSED__, char **argv __UNUSED__) 12elm_main(int argc __UNUSED__, char **argv __UNUSED__)
13{ 13{
14 Evas_Object *win, *bg, *bt, *bt2, *bt3, *bt4; 14 Evas_Object *win, *bg, *bt, *bt2, *bt3, *bt4;
@@ -83,8 +83,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
83 elm_transit_chain_transit_add(trans3, trans4); 83 elm_transit_chain_transit_add(trans3, trans4);
84 84
85 elm_run(); 85 elm_run();
86 elm_shutdown();
86 87
87 return 0; 88 return 0;
88} 89}
89
90ELM_MAIN() 90ELM_MAIN()
diff --git a/src/examples/transit_example_03.c b/src/examples/transit_example_03.c
index 331d76d..c0671ef 100644
--- a/src/examples/transit_example_03.c
+++ b/src/examples/transit_example_03.c
@@ -174,7 +174,7 @@ _cb_tween_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
174 *mode = ELM_TRANSIT_TWEEN_MODE_ACCELERATE; 174 *mode = ELM_TRANSIT_TWEEN_MODE_ACCELERATE;
175} 175}
176 176
177int 177EAPI_MAIN int
178elm_main(int argc __UNUSED__, char **argv __UNUSED__) 178elm_main(int argc __UNUSED__, char **argv __UNUSED__)
179{ 179{
180 Evas_Object *win, *bg, *obj, *icon, *box, *vbox, *vbox2, *hbox, *btn; 180 Evas_Object *win, *bg, *obj, *icon, *box, *vbox, *vbox2, *hbox, *btn;
@@ -328,8 +328,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
328 evas_object_show(win); 328 evas_object_show(win);
329 329
330 elm_run(); 330 elm_run();
331 elm_shutdown();
331 332
332 return 0; 333 return 0;
333} 334}
334
335ELM_MAIN() 335ELM_MAIN()
diff --git a/src/examples/transit_example_04.c b/src/examples/transit_example_04.c
index 576101a..9e5dcdf 100644
--- a/src/examples/transit_example_04.c
+++ b/src/examples/transit_example_04.c
@@ -90,7 +90,7 @@ _transit_start(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED_
90 elm_transit_go(trans); 90 elm_transit_go(trans);
91} 91}
92 92
93int 93EAPI_MAIN int
94elm_main(int argc __UNUSED__, char **argv __UNUSED__) 94elm_main(int argc __UNUSED__, char **argv __UNUSED__)
95{ 95{
96 Evas_Object *win, *bg, *obj, *icon, *box, *vbox, *btn, *dummy; 96 Evas_Object *win, *bg, *obj, *icon, *box, *vbox, *btn, *dummy;
@@ -170,10 +170,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
170 evas_object_show(win); 170 evas_object_show(win);
171 171
172 elm_run(); 172 elm_run();
173 173 elm_shutdown();
174 eina_list_free(objs);
175 174
176 return 0; 175 return 0;
177} 176}
178
179ELM_MAIN() 177ELM_MAIN()
diff --git a/src/examples/web_example.c b/src/examples/web_example.c
index 41d4a77..9d8d640 100644
--- a/src/examples/web_example.c
+++ b/src/examples/web_example.c
@@ -464,7 +464,7 @@ default_content_set(Evas_Object *web)
464#endif 464#endif
465} 465}
466 466
467int 467EAPI_MAIN int
468elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 468elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
469{ 469{
470 Evas_Object *win, *bg, *box, *box2, *btn, *ic, *url, *naviframe, *tabs, *web; 470 Evas_Object *win, *bg, *box, *box2, *btn, *ic, *url, *naviframe, *tabs, *web;
@@ -621,7 +621,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
621 evas_object_show(win); 621 evas_object_show(win);
622 622
623 elm_run(); 623 elm_run();
624 elm_shutdown();
624 625
625 return 0; 626 return 0;
626} 627}
627ELM_MAIN(); 628ELM_MAIN()
diff --git a/src/examples/win_example.c b/src/examples/win_example.c
index 8923af3..48e0952 100644
--- a/src/examples/win_example.c
+++ b/src/examples/win_example.c
@@ -175,7 +175,7 @@ _win_focused_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
175 printf("Window focused: %s\n", name); 175 printf("Window focused: %s\n", name);
176} 176}
177 177
178int 178EAPI_MAIN int
179elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 179elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
180{ 180{
181 Evas_Object *win, *win2, *bg, *bigbox, *box, *btn, *o; 181 Evas_Object *win, *win2, *bg, *bigbox, *box, *btn, *o;
@@ -324,7 +324,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
324 WIN_ACTION(sticky); 324 WIN_ACTION(sticky);
325 325
326 elm_run(); 326 elm_run();
327 elm_shutdown();
327 328
328 return 0; 329 return 0;
329} 330}
330ELM_MAIN(); 331ELM_MAIN()