summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 08:42:20 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 08:42:20 +0000
commit2b6a854d1b078a3fdec95cfbdb37d638286d6f8d (patch)
tree3617a3e7638e573b55aa6098b7fcfb10f3c74f2f /legacy/elementary
parentd71a77419a802aad54d2c1b252beedd2ad3a995a (diff)
elm examples: I removed __UNUSED__ and config header inclusion. This code is an example for other developers so we don't need that extra macros. But how can I ignore this warning while building elementary?
SVN revision: 69698
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/examples/actionslider_example_01.c15
-rw-r--r--legacy/elementary/src/examples/anchorblock_example_01.c17
-rw-r--r--legacy/elementary/src/examples/bg_example_01.c9
-rw-r--r--legacy/elementary/src/examples/bg_example_02.c9
-rw-r--r--legacy/elementary/src/examples/bg_example_03.c15
-rw-r--r--legacy/elementary/src/examples/box_example_02.c13
-rw-r--r--legacy/elementary/src/examples/bubble_example_01.c9
-rw-r--r--legacy/elementary/src/examples/button_example_00.c9
-rw-r--r--legacy/elementary/src/examples/button_example_01.c13
-rw-r--r--legacy/elementary/src/examples/calendar_example_01.c7
-rw-r--r--legacy/elementary/src/examples/calendar_example_02.c7
-rw-r--r--legacy/elementary/src/examples/calendar_example_03.c7
-rw-r--r--legacy/elementary/src/examples/calendar_example_04.c7
-rw-r--r--legacy/elementary/src/examples/calendar_example_05.c9
-rw-r--r--legacy/elementary/src/examples/calendar_example_06.c9
-rw-r--r--legacy/elementary/src/examples/check_example_01.c9
-rw-r--r--legacy/elementary/src/examples/clock_example.c13
-rw-r--r--legacy/elementary/src/examples/colorselector_example_01.c13
-rw-r--r--legacy/elementary/src/examples/conformant_example_01.c7
-rw-r--r--legacy/elementary/src/examples/conformant_example_02.c7
-rw-r--r--legacy/elementary/src/examples/ctxpopup_example_01.c13
-rw-r--r--legacy/elementary/src/examples/datetime_example.c13
-rw-r--r--legacy/elementary/src/examples/dayselector_example.c15
-rw-r--r--legacy/elementary/src/examples/diskselector_example_01.c13
-rw-r--r--legacy/elementary/src/examples/diskselector_example_02.c43
-rw-r--r--legacy/elementary/src/examples/efl_thread_1.c9
-rw-r--r--legacy/elementary/src/examples/efl_thread_2.c9
-rw-r--r--legacy/elementary/src/examples/efl_thread_3.c9
-rw-r--r--legacy/elementary/src/examples/efl_thread_4.c11
-rw-r--r--legacy/elementary/src/examples/efl_thread_5.c17
-rw-r--r--legacy/elementary/src/examples/efl_thread_6.c13
-rw-r--r--legacy/elementary/src/examples/efl_thread_win32_1.c5
-rw-r--r--legacy/elementary/src/examples/efl_thread_win32_2.c5
-rw-r--r--legacy/elementary/src/examples/efl_thread_win32_3.c5
-rw-r--r--legacy/elementary/src/examples/efl_thread_win32_4.c5
-rw-r--r--legacy/elementary/src/examples/entry_example.c35
-rw-r--r--legacy/elementary/src/examples/fileselector_button_example.c33
-rw-r--r--legacy/elementary/src/examples/fileselector_entry_example.c35
-rw-r--r--legacy/elementary/src/examples/fileselector_example.c43
-rw-r--r--legacy/elementary/src/examples/flip_example_01.c9
-rw-r--r--legacy/elementary/src/examples/flipselector_example.c37
-rw-r--r--legacy/elementary/src/examples/frame_example_01.c7
-rw-r--r--legacy/elementary/src/examples/general_funcs_example.c43
-rw-r--r--legacy/elementary/src/examples/gengrid_example.c93
-rw-r--r--legacy/elementary/src/examples/genlist_example_01.c11
-rw-r--r--legacy/elementary/src/examples/genlist_example_02.c17
-rw-r--r--legacy/elementary/src/examples/genlist_example_03.c11
-rw-r--r--legacy/elementary/src/examples/genlist_example_04.c41
-rw-r--r--legacy/elementary/src/examples/genlist_example_05.c35
-rw-r--r--legacy/elementary/src/examples/glview_example_01.c5
-rw-r--r--legacy/elementary/src/examples/hover_example_01.c11
-rw-r--r--legacy/elementary/src/examples/hoversel_example_01.c15
-rw-r--r--legacy/elementary/src/examples/icon_example_01.c9
-rw-r--r--legacy/elementary/src/examples/image_example_01.c9
-rw-r--r--legacy/elementary/src/examples/index_example_01.c41
-rw-r--r--legacy/elementary/src/examples/index_example_02.c27
-rw-r--r--legacy/elementary/src/examples/inwin_example.c15
-rw-r--r--legacy/elementary/src/examples/label_example_01.c7
-rw-r--r--legacy/elementary/src/examples/layout_example_01.c15
-rw-r--r--legacy/elementary/src/examples/layout_example_02.c9
-rw-r--r--legacy/elementary/src/examples/layout_example_03.c13
-rw-r--r--legacy/elementary/src/examples/list_example_01.c13
-rw-r--r--legacy/elementary/src/examples/list_example_02.c13
-rw-r--r--legacy/elementary/src/examples/list_example_03.c49
-rw-r--r--legacy/elementary/src/examples/map_example_01.c17
-rw-r--r--legacy/elementary/src/examples/map_example_02.c19
-rw-r--r--legacy/elementary/src/examples/map_example_03.c23
-rw-r--r--legacy/elementary/src/examples/mapbuf_example.c19
-rw-r--r--legacy/elementary/src/examples/menu_example_01.c11
-rw-r--r--legacy/elementary/src/examples/notify_example_01.c9
-rw-r--r--legacy/elementary/src/examples/panel_example_01.c7
-rw-r--r--legacy/elementary/src/examples/panes_example.c21
-rw-r--r--legacy/elementary/src/examples/photocam_example_01.c15
-rw-r--r--legacy/elementary/src/examples/popup_example_01.c15
-rw-r--r--legacy/elementary/src/examples/popup_example_02.c13
-rw-r--r--legacy/elementary/src/examples/popup_example_03.c15
-rw-r--r--legacy/elementary/src/examples/progressbar_example.c29
-rw-r--r--legacy/elementary/src/examples/radio_example_01.c9
-rw-r--r--legacy/elementary/src/examples/scroller_example_01.c7
-rw-r--r--legacy/elementary/src/examples/segment_control_example.c13
-rw-r--r--legacy/elementary/src/examples/separator_example_01.c7
-rw-r--r--legacy/elementary/src/examples/slider_example.c17
-rw-r--r--legacy/elementary/src/examples/slideshow_example.c69
-rw-r--r--legacy/elementary/src/examples/spinner_example.c17
-rw-r--r--legacy/elementary/src/examples/table_example_01.c7
-rw-r--r--legacy/elementary/src/examples/table_example_02.c7
-rw-r--r--legacy/elementary/src/examples/theme_example_01.c11
-rw-r--r--legacy/elementary/src/examples/theme_example_02.c9
-rw-r--r--legacy/elementary/src/examples/thumb_example_01.c15
-rw-r--r--legacy/elementary/src/examples/toolbar_example_01.c19
-rw-r--r--legacy/elementary/src/examples/toolbar_example_02.c15
-rw-r--r--legacy/elementary/src/examples/toolbar_example_03.c13
-rw-r--r--legacy/elementary/src/examples/transit_example_01.c9
-rw-r--r--legacy/elementary/src/examples/transit_example_02.c7
-rw-r--r--legacy/elementary/src/examples/transit_example_03.c17
-rw-r--r--legacy/elementary/src/examples/transit_example_04.c11
-rw-r--r--legacy/elementary/src/examples/web_example.c49
-rw-r--r--legacy/elementary/src/examples/win_example.c44
98 files changed, 592 insertions, 1083 deletions
diff --git a/legacy/elementary/src/examples/actionslider_example_01.c b/legacy/elementary/src/examples/actionslider_example_01.c
index 2a0fbb9944..e4d93550f3 100644
--- a/legacy/elementary/src/examples/actionslider_example_01.c
+++ b/legacy/elementary/src/examples/actionslider_example_01.c
@@ -2,20 +2,15 @@
2//gcc -g `pkg-config --cflags --libs elementary` actionslider_example_01.c -o actionslider_example_01 2//gcc -g `pkg-config --cflags --libs elementary` actionslider_example_01.c -o actionslider_example_01
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void _pos_selected_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info) 6static void _pos_selected_cb(void *data, Evas_Object *obj, void *event_info)
12{ 7{
13 printf("Selection: %s\n", (char *)event_info); 8 printf("Selection: %s\n", (char *)event_info);
14 printf("Label selected: %s\n", elm_actionslider_selected_label_get(obj)); 9 printf("Label selected: %s\n", elm_actionslider_selected_label_get(obj));
15} 10}
16 11
17static void 12static void
18_position_change_magnetic_cb(void *data __UNUSED__, Evas_Object * obj, void *event_info) 13_position_change_magnetic_cb(void *data, Evas_Object * obj, void *event_info)
19{ 14{
20 if (!strcmp((char *)event_info, "left")) 15 if (!strcmp((char *)event_info, "left"))
21 elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_LEFT); 16 elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_LEFT);
@@ -24,7 +19,7 @@ _position_change_magnetic_cb(void *data __UNUSED__, Evas_Object * obj, void *eve
24} 19}
25 20
26static void 21static void
27_magnet_enable_disable_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info) 22_magnet_enable_disable_cb(void *data, Evas_Object *obj, void *event_info)
28{ 23{
29 if (!strcmp((char *)event_info, "left")) 24 if (!strcmp((char *)event_info, "left"))
30 elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_CENTER); 25 elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_CENTER);
@@ -33,13 +28,13 @@ _magnet_enable_disable_cb(void *data __UNUSED__, Evas_Object *obj, void *event_i
33} 28}
34 29
35static void 30static void
36on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 31on_done(void *data, Evas_Object *obj, void *event_info)
37{ 32{
38 elm_exit(); 33 elm_exit();
39} 34}
40 35
41EAPI_MAIN int 36EAPI_MAIN int
42elm_main(int argc __UNUSED__, char **argv __UNUSED__) 37elm_main(int argc, char **argv)
43{ 38{
44 Evas_Object *win, *bg, *bx, *as; 39 Evas_Object *win, *bg, *bx, *as;
45 40
diff --git a/legacy/elementary/src/examples/anchorblock_example_01.c b/legacy/elementary/src/examples/anchorblock_example_01.c
index a5b3c73346..33761c5bd7 100644
--- a/legacy/elementary/src/examples/anchorblock_example_01.c
+++ b/legacy/elementary/src/examples/anchorblock_example_01.c
@@ -2,17 +2,12 @@
2 * gcc -o anchorblock_example_01 anchorblock_example_01.c `pkg-config --cflags --libs elementary` 2 * gcc -o anchorblock_example_01 anchorblock_example_01.c `pkg-config --cflags --libs elementary`
3 */ 3 */
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void _anchorblock_clicked_cb(void *data, Evas_Object *obj, void *ev); 6static void _anchorblock_clicked_cb(void *data, Evas_Object *obj, void *ev);
12static void _anchorview_clicked_cb(void *data, Evas_Object *obj, void *ev); 7static void _anchorview_clicked_cb(void *data, Evas_Object *obj, void *ev);
13 8
14EAPI_MAIN int 9EAPI_MAIN int
15elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 10elm_main(int argc, char *argv[])
16{ 11{
17 Evas_Object *win, *box, *o, *frame; 12 Evas_Object *win, *box, *o, *frame;
18 const char *anchortext = 13 const char *anchortext =
@@ -89,26 +84,26 @@ ELM_MAIN()
89static void _anchor_buttons_create(Evas_Object *ao, Elm_Entry_Anchorblock_Info *info, Evas_Smart_Cb btn_end_cb); 84static void _anchor_buttons_create(Evas_Object *ao, Elm_Entry_Anchorblock_Info *info, Evas_Smart_Cb btn_end_cb);
90 85
91static void 86static void
92_btn_anchorblock_end_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 87_btn_anchorblock_end_cb(void *data, Evas_Object *obj, void *event_info)
93{ 88{
94 elm_anchorblock_hover_end((Evas_Object *)data); 89 elm_anchorblock_hover_end((Evas_Object *)data);
95} 90}
96 91
97static void 92static void
98_anchorblock_clicked_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info) 93_anchorblock_clicked_cb(void *data, Evas_Object *obj, void *event_info)
99{ 94{
100 Elm_Entry_Anchorblock_Info *info = event_info; 95 Elm_Entry_Anchorblock_Info *info = event_info;
101 _anchor_buttons_create(obj, info, _btn_anchorblock_end_cb); 96 _anchor_buttons_create(obj, info, _btn_anchorblock_end_cb);
102} 97}
103 98
104static void 99static void
105_btn_anchorview_end_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 100_btn_anchorview_end_cb(void *data, Evas_Object *obj, void *event_info)
106{ 101{
107 elm_anchorview_hover_end((Evas_Object *)data); 102 elm_anchorview_hover_end((Evas_Object *)data);
108} 103}
109 104
110static void 105static void
111_anchorview_clicked_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info) 106_anchorview_clicked_cb(void *data, Evas_Object *obj, void *event_info)
112{ 107{
113 /* should be an Elm_Entry_Anchorview_Info, but since both of them are 108 /* should be an Elm_Entry_Anchorview_Info, but since both of them are
114 * the same, it simplifies code in this example to use one only */ 109 * the same, it simplifies code in this example to use one only */
@@ -117,7 +112,7 @@ _anchorview_clicked_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info
117} 112}
118 113
119static void 114static void
120_btn_clicked_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 115_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
121{ 116{
122 const char *lbl = elm_object_text_get(obj); 117 const char *lbl = elm_object_text_get(obj);
123 printf("%s: %s\n", lbl, (char *)data); 118 printf("%s: %s\n", lbl, (char *)data);
diff --git a/legacy/elementary/src/examples/bg_example_01.c b/legacy/elementary/src/examples/bg_example_01.c
index 6ce62581e6..307f11a767 100644
--- a/legacy/elementary/src/examples/bg_example_01.c
+++ b/legacy/elementary/src/examples/bg_example_01.c
@@ -2,21 +2,16 @@
2//gcc -o bg_example_01 bg_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o bg_example_01 bg_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void 6static void
12on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 7on_done(void *data, Evas_Object *obj, void *event_info)
13{ 8{
14 /* quit the mainloop (elm_run) */ 9 /* quit the mainloop (elm_run) */
15 elm_exit(); 10 elm_exit();
16} 11}
17 12
18EAPI_MAIN int 13EAPI_MAIN int
19elm_main(int argc __UNUSED__, char **argv __UNUSED__) 14elm_main(int argc, char **argv)
20{ 15{
21 Evas_Object *win, *bg; 16 Evas_Object *win, *bg;
22 17
diff --git a/legacy/elementary/src/examples/bg_example_02.c b/legacy/elementary/src/examples/bg_example_02.c
index 29f32a0bbf..9ebc73ccee 100644
--- a/legacy/elementary/src/examples/bg_example_02.c
+++ b/legacy/elementary/src/examples/bg_example_02.c
@@ -3,21 +3,16 @@
3//where directory is the a path where images/plant_01.jpg can be found. 3//where directory is the a path where images/plant_01.jpg can be found.
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
11 6
12static void 7static void
13on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 8on_done(void *data, Evas_Object *obj, void *event_info)
14{ 9{
15 /* quit the mainloop (elm_run) */ 10 /* quit the mainloop (elm_run) */
16 elm_exit(); 11 elm_exit();
17} 12}
18 13
19EAPI_MAIN int 14EAPI_MAIN int
20elm_main(int argc __UNUSED__, char **argv __UNUSED__) 15elm_main(int argc, char **argv)
21{ 16{
22 Evas_Object *win, *bg; 17 Evas_Object *win, *bg;
23 char buf[PATH_MAX]; 18 char buf[PATH_MAX];
diff --git a/legacy/elementary/src/examples/bg_example_03.c b/legacy/elementary/src/examples/bg_example_03.c
index 033b56a761..fa70a03b14 100644
--- a/legacy/elementary/src/examples/bg_example_03.c
+++ b/legacy/elementary/src/examples/bg_example_03.c
@@ -3,21 +3,16 @@
3//where directory is the a path where images/plant_01.jpg can be found. 3//where directory is the a path where images/plant_01.jpg can be found.
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
11 6
12static void 7static void
13on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 8on_done(void *data, Evas_Object *obj, void *event_info)
14{ 9{
15 /* quit the mainloop (elm_run) */ 10 /* quit the mainloop (elm_run) */
16 elm_exit(); 11 elm_exit();
17} 12}
18 13
19static void 14static void
20_cb_radio_changed(void *data, Evas_Object *obj, void *event __UNUSED__) 15_cb_radio_changed(void *data, Evas_Object *obj, void *event)
21{ 16{
22 Evas_Object *o_bg = data; 17 Evas_Object *o_bg = data;
23 18
@@ -25,7 +20,7 @@ _cb_radio_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
25} 20}
26 21
27static void 22static void
28_cb_overlay_changed(void *data, Evas_Object *obj, void *event __UNUSED__) 23_cb_overlay_changed(void *data, Evas_Object *obj, void *event)
29{ 24{
30 Evas_Object *o_bg = data; 25 Evas_Object *o_bg = data;
31 26
@@ -45,7 +40,7 @@ _cb_overlay_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
45} 40}
46 41
47static void 42static void
48_cb_color_changed(void *data, Evas_Object *obj, void *event __UNUSED__) 43_cb_color_changed(void *data, Evas_Object *obj, void *event)
49{ 44{
50 Evas_Object *o_bg = data; 45 Evas_Object *o_bg = data;
51 double val = 0.0; 46 double val = 0.0;
@@ -62,7 +57,7 @@ _cb_color_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
62} 57}
63 58
64EAPI_MAIN int 59EAPI_MAIN int
65elm_main(int argc __UNUSED__, char **argv __UNUSED__) 60elm_main(int argc, char **argv)
66{ 61{
67 Evas_Object *win, *bg; 62 Evas_Object *win, *bg;
68 Evas_Object *box, *hbox, *o_bg; 63 Evas_Object *box, *hbox, *o_bg;
diff --git a/legacy/elementary/src/examples/box_example_02.c b/legacy/elementary/src/examples/box_example_02.c
index 7b1a5a3269..777616f71d 100644
--- a/legacy/elementary/src/examples/box_example_02.c
+++ b/legacy/elementary/src/examples/box_example_02.c
@@ -2,11 +2,6 @@
2//gcc -g `pkg-config --cflags --libs elementary` box_example_02.c -o box_example_02 2//gcc -g `pkg-config --cflags --libs elementary` box_example_02.c -o box_example_02
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11typedef struct 6typedef struct
12{ 7{
@@ -16,7 +11,7 @@ typedef struct
16} Transitions_Data; 11} Transitions_Data;
17 12
18static void 13static void
19_add_cb(void *data, Evas_Object *obj __UNUSED__, void *ev __UNUSED__) 14_add_cb(void *data, Evas_Object *obj, void *ev)
20{ 15{
21 Evas_Object *btn; 16 Evas_Object *btn;
22 Eina_List *children; 17 Eina_List *children;
@@ -36,14 +31,14 @@ _add_cb(void *data, Evas_Object *obj __UNUSED__, void *ev __UNUSED__)
36} 31}
37 32
38static void 33static void
39_clear_cb(void *data, Evas_Object *obj __UNUSED__, void *ev __UNUSED__) 34_clear_cb(void *data, Evas_Object *obj, void *ev)
40{ 35{
41 Transitions_Data *tdata = data; 36 Transitions_Data *tdata = data;
42 elm_box_clear(tdata->box); 37 elm_box_clear(tdata->box);
43} 38}
44 39
45static void 40static void
46_unpack_cb(void *data, Evas_Object *obj, void *ev __UNUSED__) 41_unpack_cb(void *data, Evas_Object *obj, void *ev)
47{ 42{
48 Transitions_Data *tdata = data; 43 Transitions_Data *tdata = data;
49 elm_box_unpack(tdata->box, obj); 44 elm_box_unpack(tdata->box, obj);
@@ -72,7 +67,7 @@ _test_box_transition_change(void *data)
72} 67}
73 68
74EAPI_MAIN int 69EAPI_MAIN int
75elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 70elm_main(int argc, char *argv[])
76{ 71{
77 Evas_Object *win, *bg, *bigbox, *bx, *bt; 72 Evas_Object *win, *bg, *bigbox, *bx, *bt;
78 static Transitions_Data tdata = { 73 static Transitions_Data tdata = {
diff --git a/legacy/elementary/src/examples/bubble_example_01.c b/legacy/elementary/src/examples/bubble_example_01.c
index 47546bd2de..c3e2cfffb2 100644
--- a/legacy/elementary/src/examples/bubble_example_01.c
+++ b/legacy/elementary/src/examples/bubble_example_01.c
@@ -2,14 +2,9 @@
2//gcc -o bubble_example_01 bubble_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o bubble_example_01 bubble_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11void 6void
12_bla(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 7_bla(void *data, Evas_Object *obj, void *event_info)
13{ 8{
14 static unsigned char corner = 0; 9 static unsigned char corner = 0;
15 ++corner; 10 ++corner;
@@ -21,7 +16,7 @@ _bla(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
21} 16}
22 17
23EAPI_MAIN int 18EAPI_MAIN int
24elm_main(int argc __UNUSED__, char **argv __UNUSED__) 19elm_main(int argc, char **argv)
25{ 20{
26 Evas_Object *win, *bg, *bubble, *label, *icon; 21 Evas_Object *win, *bg, *bubble, *label, *icon;
27 22
diff --git a/legacy/elementary/src/examples/button_example_00.c b/legacy/elementary/src/examples/button_example_00.c
index e35b80f19d..d9f37b1e3a 100644
--- a/legacy/elementary/src/examples/button_example_00.c
+++ b/legacy/elementary/src/examples/button_example_00.c
@@ -2,20 +2,15 @@
2 * gcc -o button_example_00 button_example_00.c `pkg-config --cflags --libs elementary` 2 * gcc -o button_example_00 button_example_00.c `pkg-config --cflags --libs elementary`
3 */ 3 */
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6#include "elementary_config.h"
7#else
8#define __UNUSED__
9#endif
10 5
11static void 6static void
12on_click(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 7on_click(void *data, Evas_Object *obj, void *event_info)
13{ 8{
14 elm_exit(); 9 elm_exit();
15} 10}
16 11
17EAPI_MAIN int 12EAPI_MAIN int
18elm_main(int argc __UNUSED__, char **argv __UNUSED__) 13elm_main(int argc, char **argv)
19{ 14{
20 Evas_Object *win = NULL; 15 Evas_Object *win = NULL;
21 Evas_Object *bg = NULL; 16 Evas_Object *bg = NULL;
diff --git a/legacy/elementary/src/examples/button_example_01.c b/legacy/elementary/src/examples/button_example_01.c
index 8b051c32df..4005662ecf 100644
--- a/legacy/elementary/src/examples/button_example_01.c
+++ b/legacy/elementary/src/examples/button_example_01.c
@@ -2,11 +2,6 @@
2 * gcc -o button_example_01 button_example_01.c `pkg-config --cflags --libs elementary` 2 * gcc -o button_example_01 button_example_01.c `pkg-config --cflags --libs elementary`
3 */ 3 */
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11typedef struct 6typedef struct
12{ 7{
@@ -21,7 +16,7 @@ typedef struct
21} App_Data; 16} App_Data;
22 17
23static void 18static void
24_btn_cursors_release_cb(void *data, Evas_Object *btn __UNUSED__, void *ev __UNUSED__) 19_btn_cursors_release_cb(void *data, Evas_Object *btn, void *ev)
25{ 20{
26 App_Data *app = data; 21 App_Data *app = data;
27 elm_object_part_content_set(app->mid, "icon", app->icon_still); 22 elm_object_part_content_set(app->mid, "icon", app->icon_still);
@@ -29,7 +24,7 @@ _btn_cursors_release_cb(void *data, Evas_Object *btn __UNUSED__, void *ev __UNUS
29} 24}
30 25
31static void 26static void
32_btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev __UNUSED__) 27_btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev)
33{ 28{
34 App_Data *app = data; 29 App_Data *app = data;
35 double ax, ay; 30 double ax, ay;
@@ -73,7 +68,7 @@ _btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev __UNUSED__)
73} 68}
74 69
75static void 70static void
76_btn_options_cb(void *data, Evas_Object *btn, void *ev __UNUSED__) 71_btn_options_cb(void *data, Evas_Object *btn, void *ev)
77{ 72{
78 char *ptr; 73 char *ptr;
79 double t; 74 double t;
@@ -101,7 +96,7 @@ _btn_options_cb(void *data, Evas_Object *btn, void *ev __UNUSED__)
101} 96}
102 97
103EAPI_MAIN int 98EAPI_MAIN int
104elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 99elm_main(int argc, char *argv[])
105{ 100{
106 Evas_Object *win, *bg, *box, *box2, *btn, *icon; 101 Evas_Object *win, *bg, *box, *box2, *btn, *icon;
107 static App_Data data; 102 static App_Data data;
diff --git a/legacy/elementary/src/examples/calendar_example_01.c b/legacy/elementary/src/examples/calendar_example_01.c
index 7be949ded0..f00cfc4a3d 100644
--- a/legacy/elementary/src/examples/calendar_example_01.c
+++ b/legacy/elementary/src/examples/calendar_example_01.c
@@ -10,14 +10,9 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19EAPI_MAIN int 14EAPI_MAIN int
20elm_main(int argc __UNUSED__, char **argv __UNUSED__) 15elm_main(int argc, char **argv)
21{ 16{
22 Evas_Object *win, *bg, *cal; 17 Evas_Object *win, *bg, *cal;
23 18
diff --git a/legacy/elementary/src/examples/calendar_example_02.c b/legacy/elementary/src/examples/calendar_example_02.c
index 56a5d0decc..897845113b 100644
--- a/legacy/elementary/src/examples/calendar_example_02.c
+++ b/legacy/elementary/src/examples/calendar_example_02.c
@@ -11,11 +11,6 @@
11 */ 11 */
12 12
13#include <Elementary.h> 13#include <Elementary.h>
14#ifdef HAVE_CONFIG_H
15# include "elementary_config.h"
16#else
17# define __UNUSED__
18#endif
19 14
20static char * 15static char *
21_format_month_year(struct tm *format_time) 16_format_month_year(struct tm *format_time)
@@ -27,7 +22,7 @@ _format_month_year(struct tm *format_time)
27} 22}
28 23
29EAPI_MAIN int 24EAPI_MAIN int
30elm_main(int argc __UNUSED__, char **argv __UNUSED__) 25elm_main(int argc, char **argv)
31{ 26{
32 Evas_Object *win, *bg, *cal; 27 Evas_Object *win, *bg, *cal;
33 const char *weekdays[] = 28 const char *weekdays[] =
diff --git a/legacy/elementary/src/examples/calendar_example_03.c b/legacy/elementary/src/examples/calendar_example_03.c
index a54c892046..2e86be5ec2 100644
--- a/legacy/elementary/src/examples/calendar_example_03.c
+++ b/legacy/elementary/src/examples/calendar_example_03.c
@@ -11,14 +11,9 @@
11 */ 11 */
12 12
13#include <Elementary.h> 13#include <Elementary.h>
14#ifdef HAVE_CONFIG_H
15# include "elementary_config.h"
16#else
17# define __UNUSED__
18#endif
19 14
20EAPI_MAIN int 15EAPI_MAIN int
21elm_main(int argc __UNUSED__, char **argv __UNUSED__) 16elm_main(int argc, char **argv)
22{ 17{
23 Evas_Object *win, *bg, *cal; 18 Evas_Object *win, *bg, *cal;
24 19
diff --git a/legacy/elementary/src/examples/calendar_example_04.c b/legacy/elementary/src/examples/calendar_example_04.c
index ed90a5dd04..ff170bab86 100644
--- a/legacy/elementary/src/examples/calendar_example_04.c
+++ b/legacy/elementary/src/examples/calendar_example_04.c
@@ -11,16 +11,11 @@
11 */ 11 */
12 12
13#include <Elementary.h> 13#include <Elementary.h>
14#ifdef HAVE_CONFIG_H
15# include "elementary_config.h"
16#else
17# define __UNUSED__
18#endif
19 14
20#define SECS_DAY 86400 15#define SECS_DAY 86400
21 16
22EAPI_MAIN int 17EAPI_MAIN int
23elm_main(int argc __UNUSED__, char **argv __UNUSED__) 18elm_main(int argc, char **argv)
24{ 19{
25 Evas_Object *win, *bg, *bx, *cal, *cal2; 20 Evas_Object *win, *bg, *bx, *cal, *cal2;
26 struct tm selected_time; 21 struct tm selected_time;
diff --git a/legacy/elementary/src/examples/calendar_example_05.c b/legacy/elementary/src/examples/calendar_example_05.c
index 5b45b3da3c..6f752b1d2e 100644
--- a/legacy/elementary/src/examples/calendar_example_05.c
+++ b/legacy/elementary/src/examples/calendar_example_05.c
@@ -10,14 +10,9 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_print_cal_info_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 15_print_cal_info_cb(void *data, Evas_Object *obj, void *event_info)
21{ 16{
22 int year_min, year_max; 17 int year_min, year_max;
23 Eina_Bool sel_enabled; 18 Eina_Bool sel_enabled;
@@ -42,7 +37,7 @@ _print_cal_info_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info __U
42} 37}
43 38
44EAPI_MAIN int 39EAPI_MAIN int
45elm_main(int argc __UNUSED__, char **argv __UNUSED__) 40elm_main(int argc, char **argv)
46{ 41{
47 Evas_Object *win, *bg, *cal; 42 Evas_Object *win, *bg, *cal;
48 43
diff --git a/legacy/elementary/src/examples/calendar_example_06.c b/legacy/elementary/src/examples/calendar_example_06.c
index 60b13f8f02..192aed3f6b 100644
--- a/legacy/elementary/src/examples/calendar_example_06.c
+++ b/legacy/elementary/src/examples/calendar_example_06.c
@@ -9,16 +9,11 @@
9 */ 9 */
10 10
11#include <Elementary.h> 11#include <Elementary.h>
12#ifdef HAVE_CONFIG_H
13# include "elementary_config.h"
14#else
15# define __UNUSED__
16#endif
17 12
18#define SECS_DAY 86400 13#define SECS_DAY 86400
19 14
20static void 15static void
21_btn_clear_cb(void *data, Evas_Object *btn __UNUSED__, void *ev __UNUSED__) 16_btn_clear_cb(void *data, Evas_Object *btn, void *ev)
22{ 17{
23 Evas_Object *cal = data; 18 Evas_Object *cal = data;
24 elm_calendar_marks_clear(cal); 19 elm_calendar_marks_clear(cal);
@@ -26,7 +21,7 @@ _btn_clear_cb(void *data, Evas_Object *btn __UNUSED__, void *ev __UNUSED__)
26} 21}
27 22
28EAPI_MAIN int 23EAPI_MAIN int
29elm_main(int argc __UNUSED__, char **argv __UNUSED__) 24elm_main(int argc, char **argv)
30{ 25{
31 Evas_Object *win, *bg, *bt, *bx, *cal; 26 Evas_Object *win, *bg, *bt, *bx, *cal;
32 Elm_Calendar_Mark *mark; 27 Elm_Calendar_Mark *mark;
diff --git a/legacy/elementary/src/examples/check_example_01.c b/legacy/elementary/src/examples/check_example_01.c
index a0d99c584d..d8ae334d4d 100644
--- a/legacy/elementary/src/examples/check_example_01.c
+++ b/legacy/elementary/src/examples/check_example_01.c
@@ -2,16 +2,11 @@
2//gcc -o check_example_01 check_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o check_example_01 check_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void _print(void *data, Evas_Object *obj, void *event_info); 6static void _print(void *data, Evas_Object *obj, void *event_info);
12 7
13EAPI_MAIN int 8EAPI_MAIN int
14elm_main(int argc __UNUSED__, char **argv __UNUSED__) 9elm_main(int argc, char **argv)
15{ 10{
16 Evas_Object *win, *bg, *cb, *cb2, *icon; 11 Evas_Object *win, *bg, *cb, *cb2, *icon;
17 Eina_Bool value; 12 Eina_Bool value;
@@ -58,7 +53,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
58ELM_MAIN() 53ELM_MAIN()
59 54
60static void 55static void
61_print(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 56_print(void *data, Evas_Object *obj, void *event_info)
62{ 57{
63 printf("check %smarked\n", *((Eina_Bool*)data) ? "" : "un"); 58 printf("check %smarked\n", *((Eina_Bool*)data) ? "" : "un");
64} 59}
diff --git a/legacy/elementary/src/examples/clock_example.c b/legacy/elementary/src/examples/clock_example.c
index b511b5ee6b..9da576233c 100644
--- a/legacy/elementary/src/examples/clock_example.c
+++ b/legacy/elementary/src/examples/clock_example.c
@@ -10,22 +10,17 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_on_done(void *data __UNUSED__, 15_on_done(void *data,
21 Evas_Object *obj __UNUSED__, 16 Evas_Object *obj,
22 void *event_info __UNUSED__) 17 void *event_info)
23{ 18{
24 elm_exit(); 19 elm_exit();
25} 20}
26 21
27EAPI_MAIN int 22EAPI_MAIN int
28elm_main(int argc __UNUSED__, char **argv __UNUSED__) 23elm_main(int argc, char **argv)
29{ 24{
30 Evas_Object *win, *bg, *bx, *ck; 25 Evas_Object *win, *bg, *bx, *ck;
31 unsigned int digedit; 26 unsigned int digedit;
diff --git a/legacy/elementary/src/examples/colorselector_example_01.c b/legacy/elementary/src/examples/colorselector_example_01.c
index 43a6be4a5d..28905c027f 100644
--- a/legacy/elementary/src/examples/colorselector_example_01.c
+++ b/legacy/elementary/src/examples/colorselector_example_01.c
@@ -2,18 +2,13 @@
2//gcc -g `pkg-config --cflags --libs elementary` colorselector_example_01.c -o colorselector_example_01 2//gcc -g `pkg-config --cflags --libs elementary` colorselector_example_01.c -o colorselector_example_01
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void _change_color(void *data, Evas_Object *obj, void *event_info); 6static void _change_color(void *data, Evas_Object *obj, void *event_info);
12static void _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info); 7static void _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info);
13static void _colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info); 8static void _colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info);
14 9
15EAPI_MAIN int 10EAPI_MAIN int
16elm_main(int argc __UNUSED__, char **argv __UNUSED__) 11elm_main(int argc, char **argv)
17{ 12{
18 Evas_Object *win, *bg, *cs, *rect, *bx, *fr; 13 Evas_Object *win, *bg, *cs, *rect, *bx, *fr;
19 14
@@ -74,7 +69,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
74ELM_MAIN() 69ELM_MAIN()
75 70
76static void 71static void
77_change_color(void *data, Evas_Object *obj, void *event_info __UNUSED__) 72_change_color(void *data, Evas_Object *obj, void *event_info)
78{ 73{
79 int r, g, b, a; 74 int r, g, b, a;
80 elm_colorselector_color_get(obj, &r, &g, &b, &a); 75 elm_colorselector_color_get(obj, &r, &g, &b, &a);
@@ -82,7 +77,7 @@ _change_color(void *data, Evas_Object *obj, void *event_info __UNUSED__)
82} 77}
83 78
84static void 79static void
85_colorpalette_clicked_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info) 80_colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info)
86{ 81{
87 int r = 0, g = 0, b = 0 ,a = 0; 82 int r = 0, g = 0, b = 0 ,a = 0;
88 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info; 83 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info;
@@ -91,7 +86,7 @@ _colorpalette_clicked_cb(void *data, Evas_Object *obj __UNUSED__, void *event_in
91} 86}
92 87
93static void 88static void
94_colorpalette_longpressed_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info) 89_colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info)
95{ 90{
96 int r = 0,g = 0,b = 0 ,a = 0; 91 int r = 0,g = 0,b = 0 ,a = 0;
97 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info; 92 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info;
diff --git a/legacy/elementary/src/examples/conformant_example_01.c b/legacy/elementary/src/examples/conformant_example_01.c
index 4bbef18b07..426bea4e09 100644
--- a/legacy/elementary/src/examples/conformant_example_01.c
+++ b/legacy/elementary/src/examples/conformant_example_01.c
@@ -10,14 +10,9 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19EAPI_MAIN int 14EAPI_MAIN int
20elm_main(int argc __UNUSED__, char **argv __UNUSED__) 15elm_main(int argc, char **argv)
21{ 16{
22 Evas_Object *win, *bg, *btn, *bx, *en; 17 Evas_Object *win, *bg, *btn, *bx, *en;
23 18
diff --git a/legacy/elementary/src/examples/conformant_example_02.c b/legacy/elementary/src/examples/conformant_example_02.c
index a2ec8a360b..bea9ec2c6b 100644
--- a/legacy/elementary/src/examples/conformant_example_02.c
+++ b/legacy/elementary/src/examples/conformant_example_02.c
@@ -10,14 +10,9 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19EAPI_MAIN int 14EAPI_MAIN int
20elm_main(int argc __UNUSED__, char **argv __UNUSED__) 15elm_main(int argc, char **argv)
21{ 16{
22 Evas_Object *win, *bg, *conform, *btn, *bx, *en; 17 Evas_Object *win, *bg, *conform, *btn, *bx, *en;
23 18
diff --git a/legacy/elementary/src/examples/ctxpopup_example_01.c b/legacy/elementary/src/examples/ctxpopup_example_01.c
index 2a82db5ef1..763d71d1d4 100644
--- a/legacy/elementary/src/examples/ctxpopup_example_01.c
+++ b/legacy/elementary/src/examples/ctxpopup_example_01.c
@@ -2,14 +2,9 @@
2//gcc -o ctxpopup_example_01 ctxpopup_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o ctxpopup_example_01 ctxpopup_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void 6static void
12_ctxpopup_item_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info) 7_ctxpopup_item_cb(void *data, Evas_Object *obj, void *event_info)
13{ 8{
14 printf("ctxpopup item selected: %s\n", elm_object_item_text_get(event_info)); 9 printf("ctxpopup item selected: %s\n", elm_object_item_text_get(event_info));
15} 10}
@@ -23,7 +18,7 @@ Elm_Object_Item *item_new(Evas_Object *ctxpopup, const char * label, const char
23} 18}
24 19
25static void 20static void
26_list_item_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 21_list_item_cb(void *data, Evas_Object *obj, void *event_info)
27{ 22{
28 Evas_Object *ctxpopup; 23 Evas_Object *ctxpopup;
29 Elm_Object_Item *it; 24 Elm_Object_Item *it;
@@ -49,7 +44,7 @@ _list_item_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
49} 44}
50 45
51static void 46static void
52_list_item_cb2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 47_list_item_cb2(void *data, Evas_Object *obj, void *event_info)
53{ 48{
54 Evas_Object *ctxpopup; 49 Evas_Object *ctxpopup;
55 Elm_Object_Item *it; 50 Elm_Object_Item *it;
@@ -75,7 +70,7 @@ _list_item_cb2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
75} 70}
76 71
77EAPI_MAIN int 72EAPI_MAIN int
78elm_main(int argc __UNUSED__, char **argv __UNUSED__) 73elm_main(int argc, char **argv)
79{ 74{
80 Evas_Object *win, *bg, *list; 75 Evas_Object *win, *bg, *list;
81 76
diff --git a/legacy/elementary/src/examples/datetime_example.c b/legacy/elementary/src/examples/datetime_example.c
index cbb011e5b6..63d502f848 100644
--- a/legacy/elementary/src/examples/datetime_example.c
+++ b/legacy/elementary/src/examples/datetime_example.c
@@ -2,22 +2,17 @@
2//gcc -g `pkg-config --cflags --libs elementary` datetime_example.c -o datetime_example 2//gcc -g `pkg-config --cflags --libs elementary` datetime_example.c -o datetime_example
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void 6static void
12_on_done(void *data __UNUSED__, 7_on_done(void *data,
13 Evas_Object *obj __UNUSED__, 8 Evas_Object *obj,
14 void *event_info __UNUSED__) 9 void *event_info)
15{ 10{
16 elm_exit(); 11 elm_exit();
17} 12}
18 13
19EAPI_MAIN int 14EAPI_MAIN int
20elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 15elm_main(int argc, char *argv[])
21{ 16{
22 Evas_Object *win, *bg, *bx, *datetime; 17 Evas_Object *win, *bg, *bx, *datetime;
23 18
diff --git a/legacy/elementary/src/examples/dayselector_example.c b/legacy/elementary/src/examples/dayselector_example.c
index 265f9a6441..cd08ad5732 100644
--- a/legacy/elementary/src/examples/dayselector_example.c
+++ b/legacy/elementary/src/examples/dayselector_example.c
@@ -10,22 +10,17 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_on_done(void *data __UNUSED__, 15_on_done(void *data,
21 Evas_Object *obj __UNUSED__, 16 Evas_Object *obj,
22 void *event_info __UNUSED__) 17 void *event_info)
23{ 18{
24 elm_exit(); 19 elm_exit();
25} 20}
26 21
27/* Callback function when a day is clicked. */ 22/* Callback function when a day is clicked. */
28static void _changed_cb(void* data __UNUSED__, Evas_Object* obj, void* event_info) 23static void _changed_cb(void* data, Evas_Object* obj, void* event_info)
29{ 24{
30 char buf[256]; 25 char buf[256];
31 Elm_Dayselector_Day day; 26 Elm_Dayselector_Day day;
@@ -51,7 +46,7 @@ static void _changed_cb(void* data __UNUSED__, Evas_Object* obj, void* event_inf
51/* End of clicked callback */ 46/* End of clicked callback */
52 47
53EAPI_MAIN int 48EAPI_MAIN int
54elm_main(int argc __UNUSED__, char **argv __UNUSED__) 49elm_main(int argc, char **argv)
55{ 50{
56 Evas_Object *win, *bg, *bx, *dayselector; 51 Evas_Object *win, *bg, *bx, *dayselector;
57 52
diff --git a/legacy/elementary/src/examples/diskselector_example_01.c b/legacy/elementary/src/examples/diskselector_example_01.c
index d506e35f15..5c06d2342a 100644
--- a/legacy/elementary/src/examples/diskselector_example_01.c
+++ b/legacy/elementary/src/examples/diskselector_example_01.c
@@ -10,22 +10,17 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_on_done(void *data __UNUSED__, 15_on_done(void *data,
21 Evas_Object *obj __UNUSED__, 16 Evas_Object *obj,
22 void *event_info __UNUSED__) 17 void *event_info)
23{ 18{
24 elm_exit(); 19 elm_exit();
25} 20}
26 21
27EAPI_MAIN int 22EAPI_MAIN int
28elm_main(int argc __UNUSED__, char **argv __UNUSED__) 23elm_main(int argc, char **argv)
29{ 24{
30 Evas_Object *win, *bg, *bx, *ds; 25 Evas_Object *win, *bg, *bx, *ds;
31 unsigned int i; 26 unsigned int i;
diff --git a/legacy/elementary/src/examples/diskselector_example_02.c b/legacy/elementary/src/examples/diskselector_example_02.c
index 0638d235f5..6bd7db4974 100644
--- a/legacy/elementary/src/examples/diskselector_example_02.c
+++ b/legacy/elementary/src/examples/diskselector_example_02.c
@@ -10,24 +10,19 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static int counter = 3; 14static int counter = 3;
20 15
21static void 16static void
22_on_done(void *data __UNUSED__, 17_on_done(void *data,
23 Evas_Object *obj __UNUSED__, 18 Evas_Object *obj,
24 void *event_info __UNUSED__) 19 void *event_info)
25{ 20{
26 elm_exit(); 21 elm_exit();
27} 22}
28 23
29static void 24static void
30_add_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 25_add_cb(void *data, Evas_Object *obj, void *event_info)
31{ 26{
32 Elm_Object_Item *ds_it; 27 Elm_Object_Item *ds_it;
33 Evas_Object *ds = data; 28 Evas_Object *ds = data;
@@ -39,7 +34,7 @@ _add_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
39} 34}
40 35
41static void 36static void
42_add_ic_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 37_add_ic_cb(void *data, Evas_Object *obj, void *event_info)
43{ 38{
44 Elm_Object_Item *ds_it; 39 Elm_Object_Item *ds_it;
45 Evas_Object *ic, *ds = data; 40 Evas_Object *ic, *ds = data;
@@ -54,14 +49,14 @@ _add_ic_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
54} 49}
55 50
56static void 51static void
57_sel_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info) 52_sel_cb(void *data, Evas_Object *obj, void *event_info)
58{ 53{
59 Elm_Object_Item *ds_it = event_info; 54 Elm_Object_Item *ds_it = event_info;
60 printf("Selected label: %s\n", elm_object_item_text_get(ds_it)); 55 printf("Selected label: %s\n", elm_object_item_text_get(ds_it));
61} 56}
62 57
63static void 58static void
64_add_func_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 59_add_func_cb(void *data, Evas_Object *obj, void *event_info)
65{ 60{
66 Elm_Object_Item *ds_it; 61 Elm_Object_Item *ds_it;
67 Evas_Object *ds = data; 62 Evas_Object *ds = data;
@@ -73,7 +68,7 @@ _add_func_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED_
73} 68}
74 69
75static void 70static void
76_sel_data_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info) 71_sel_data_cb(void *data, Evas_Object *obj, void *event_info)
77{ 72{
78 char *content = data; 73 char *content = data;
79 Elm_Object_Item *ds_it = event_info; 74 Elm_Object_Item *ds_it = event_info;
@@ -82,13 +77,13 @@ _sel_data_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info)
82} 77}
83 78
84static void 79static void
85_free_data(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 80_free_data(void *data, Evas_Object *obj, void *event_info)
86{ 81{
87 free(data); 82 free(data);
88} 83}
89 84
90static void 85static void
91_add_data_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 86_add_data_cb(void *data, Evas_Object *obj, void *event_info)
92{ 87{
93 Elm_Object_Item *ds_it; 88 Elm_Object_Item *ds_it;
94 Evas_Object *ds = data; 89 Evas_Object *ds = data;
@@ -106,7 +101,7 @@ _add_data_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED_
106} 101}
107 102
108static void 103static void
109_del_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 104_del_cb(void *data, Evas_Object *obj, void *event_info)
110{ 105{
111 Elm_Object_Item *selected_ds_it; 106 Elm_Object_Item *selected_ds_it;
112 Evas_Object *ds = data; 107 Evas_Object *ds = data;
@@ -116,7 +111,7 @@ _del_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
116} 111}
117 112
118static void 113static void
119_unselect_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 114_unselect_cb(void *data, Evas_Object *obj, void *event_info)
120{ 115{
121 Elm_Object_Item *selected_ds_it; 116 Elm_Object_Item *selected_ds_it;
122 Evas_Object *ds = data; 117 Evas_Object *ds = data;
@@ -126,7 +121,7 @@ _unselect_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED_
126} 121}
127 122
128static void 123static void
129_print_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 124_print_cb(void *data, Evas_Object *obj, void *event_info)
130{ 125{
131 const Eina_List *l, *items; 126 const Eina_List *l, *items;
132 Elm_Object_Item *ds_it; 127 Elm_Object_Item *ds_it;
@@ -138,14 +133,14 @@ _print_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
138} 133}
139 134
140static void 135static void
141_clear_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 136_clear_cb(void *data, Evas_Object *obj, void *event_info)
142{ 137{
143 Evas_Object *ds = data; 138 Evas_Object *ds = data;
144 elm_diskselector_clear(ds); 139 elm_diskselector_clear(ds);
145} 140}
146 141
147static void 142static void
148_select_first_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 143_select_first_cb(void *data, Evas_Object *obj, void *event_info)
149{ 144{
150 Elm_Object_Item *first_ds_it; 145 Elm_Object_Item *first_ds_it;
151 Evas_Object *ds = data; 146 Evas_Object *ds = data;
@@ -156,7 +151,7 @@ _select_first_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNU
156} 151}
157 152
158static void 153static void
159_select_last_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 154_select_last_cb(void *data, Evas_Object *obj, void *event_info)
160{ 155{
161 Elm_Object_Item *last_ds_it; 156 Elm_Object_Item *last_ds_it;
162 Evas_Object *ds = data; 157 Evas_Object *ds = data;
@@ -167,7 +162,7 @@ _select_last_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUS
167} 162}
168 163
169static void 164static void
170_select_next_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 165_select_next_cb(void *data, Evas_Object *obj, void *event_info)
171{ 166{
172 Elm_Object_Item *selected_ds_it, *next_ds_it; 167 Elm_Object_Item *selected_ds_it, *next_ds_it;
173 Evas_Object *ds = data; 168 Evas_Object *ds = data;
@@ -181,7 +176,7 @@ _select_next_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUS
181} 176}
182 177
183static void 178static void
184_select_prev_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 179_select_prev_cb(void *data, Evas_Object *obj, void *event_info)
185{ 180{
186 Elm_Object_Item *selected_ds_it, *prev_ds_it; 181 Elm_Object_Item *selected_ds_it, *prev_ds_it;
187 Evas_Object *ds = data; 182 Evas_Object *ds = data;
@@ -195,7 +190,7 @@ _select_prev_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUS
195} 190}
196 191
197EAPI_MAIN int 192EAPI_MAIN int
198elm_main(int argc __UNUSED__, char **argv __UNUSED__) 193elm_main(int argc, char **argv)
199{ 194{
200 Evas_Object *win, *bg, *bx, *hbx, *ds, *bt; 195 Evas_Object *win, *bg, *bx, *hbx, *ds, *bt;
201 196
diff --git a/legacy/elementary/src/examples/efl_thread_1.c b/legacy/elementary/src/examples/efl_thread_1.c
index bc91ca824a..0f1853974f 100644
--- a/legacy/elementary/src/examples/efl_thread_1.c
+++ b/legacy/elementary/src/examples/efl_thread_1.c
@@ -2,11 +2,6 @@
2//gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static Evas_Object *win = NULL; 6static Evas_Object *win = NULL;
12static Evas_Object *rect = NULL; 7static Evas_Object *rect = NULL;
@@ -16,7 +11,7 @@ static pthread_t thread_id;
16// BEGIN - code running in my custom pthread instance 11// BEGIN - code running in my custom pthread instance
17// 12//
18static void * 13static void *
19my_thread_run(void *arg __UNUSED__) 14my_thread_run(void *arg)
20{ 15{
21 double t = 0.0; 16 double t = 0.0;
22 17
@@ -51,7 +46,7 @@ my_thread_new(void)
51} 46}
52 47
53EAPI_MAIN int 48EAPI_MAIN int
54elm_main(int argc __UNUSED__, char **argv __UNUSED__) 49elm_main(int argc, char **argv)
55{ 50{
56 Evas_Object *o, *bg; 51 Evas_Object *o, *bg;
57 52
diff --git a/legacy/elementary/src/examples/efl_thread_2.c b/legacy/elementary/src/examples/efl_thread_2.c
index 377c43d5ee..ceedc75810 100644
--- a/legacy/elementary/src/examples/efl_thread_2.c
+++ b/legacy/elementary/src/examples/efl_thread_2.c
@@ -2,11 +2,6 @@
2//gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static Evas_Object *win = NULL; 6static Evas_Object *win = NULL;
12static Evas_Object *rect = NULL; 7static Evas_Object *rect = NULL;
@@ -23,7 +18,7 @@ static pthread_t thread_id;
23// BEGIN - code running in my custom pthread instance 18// BEGIN - code running in my custom pthread instance
24// 19//
25static void * 20static void *
26my_thread_run(void *arg __UNUSED__) 21my_thread_run(void *arg)
27{ 22{
28 double t = 0.0; 23 double t = 0.0;
29 24
@@ -67,7 +62,7 @@ my_thread_mainloop_code(void *data)
67} 62}
68 63
69EAPI_MAIN int 64EAPI_MAIN int
70elm_main(int argc __UNUSED__, char **argv __UNUSED__) 65elm_main(int argc, char **argv)
71{ 66{
72 Evas_Object *o, *bg; 67 Evas_Object *o, *bg;
73 68
diff --git a/legacy/elementary/src/examples/efl_thread_3.c b/legacy/elementary/src/examples/efl_thread_3.c
index 2b1d025797..cbc2c67fce 100644
--- a/legacy/elementary/src/examples/efl_thread_3.c
+++ b/legacy/elementary/src/examples/efl_thread_3.c
@@ -2,11 +2,6 @@
2//gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static Evas_Object *win = NULL; 6static Evas_Object *win = NULL;
12static Evas_Object *rect = NULL; 7static Evas_Object *rect = NULL;
@@ -23,7 +18,7 @@ static pthread_t thread_id;
23// BEGIN - code running in my custom pthread instance 18// BEGIN - code running in my custom pthread instance
24// 19//
25static void * 20static void *
26my_thread_run(void *arg __UNUSED__) 21my_thread_run(void *arg)
27{ 22{
28 double t = 0.0; 23 double t = 0.0;
29 24
@@ -69,7 +64,7 @@ my_thread_mainloop_code(void *data)
69} 64}
70 65
71EAPI_MAIN int 66EAPI_MAIN int
72elm_main(int argc __UNUSED__, char **argv __UNUSED__) 67elm_main(int argc, char **argv)
73{ 68{
74 Evas_Object *o, *bg; 69 Evas_Object *o, *bg;
75 70
diff --git a/legacy/elementary/src/examples/efl_thread_4.c b/legacy/elementary/src/examples/efl_thread_4.c
index 517b805e39..2f565aa7f1 100644
--- a/legacy/elementary/src/examples/efl_thread_4.c
+++ b/legacy/elementary/src/examples/efl_thread_4.c
@@ -2,11 +2,6 @@
2//gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static Evas_Object *win = NULL; 6static Evas_Object *win = NULL;
12static Evas_Object *rect = NULL; 7static Evas_Object *rect = NULL;
@@ -25,7 +20,7 @@ static int th_exit = 0;
25// BEGIN - code running in my custom pthread instance 20// BEGIN - code running in my custom pthread instance
26// 21//
27static void * 22static void *
28my_thread_run(void *arg __UNUSED__) 23my_thread_run(void *arg)
29{ 24{
30 double t = 0.0; 25 double t = 0.0;
31 26
@@ -81,7 +76,7 @@ my_thread_mainloop_code(void *data)
81 76
82// just test cancelling the thread 77// just test cancelling the thread
83static void 78static void
84down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 79down(void *data, Evas *e, Evas_Object *obj, void *event_info)
85{ 80{
86 pthread_mutex_lock(&th_lock); 81 pthread_mutex_lock(&th_lock);
87 th_exit = 1; 82 th_exit = 1;
@@ -89,7 +84,7 @@ down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, voi
89} 84}
90 85
91EAPI_MAIN int 86EAPI_MAIN int
92elm_main(int argc __UNUSED__, char **argv __UNUSED__) 87elm_main(int argc, char **argv)
93{ 88{
94 Evas_Object *o, *bg; 89 Evas_Object *o, *bg;
95 90
diff --git a/legacy/elementary/src/examples/efl_thread_5.c b/legacy/elementary/src/examples/efl_thread_5.c
index 7132eda023..4e53dd0931 100644
--- a/legacy/elementary/src/examples/efl_thread_5.c
+++ b/legacy/elementary/src/examples/efl_thread_5.c
@@ -1,11 +1,6 @@
1//Compile with: 1//Compile with:
2//gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#ifdef HAVE_CONFIG_H
5# include "elementary_config.h"
6#else
7# define __UNUSED__
8#endif
9 4
10static Ecore_Thread *thr = NULL; 5static Ecore_Thread *thr = NULL;
11 6
@@ -20,7 +15,7 @@ struct info
20// BEGIN - code running in my custom thread instance 15// BEGIN - code running in my custom thread instance
21// 16//
22static void 17static void
23th_do(void *data __UNUSED__, Ecore_Thread *th) 18th_do(void *data, Ecore_Thread *th)
24{ 19{
25 double t = 0.0; 20 double t = 0.0;
26 21
@@ -49,7 +44,7 @@ th_do(void *data __UNUSED__, Ecore_Thread *th)
49// END - code running in my custom thread instance 44// END - code running in my custom thread instance
50 45
51static void // when mainloop gets feedback from worker 46static void // when mainloop gets feedback from worker
52th_feedback(void *data __UNUSED__, Ecore_Thread *th __UNUSED__, void *msg) 47th_feedback(void *data, Ecore_Thread *th, void *msg)
53{ 48{
54 struct info *inf = msg; 49 struct info *inf = msg;
55 evas_object_move(rect, inf->x - 50, inf->y - 50); 50 evas_object_move(rect, inf->x - 50, inf->y - 50);
@@ -57,19 +52,19 @@ th_feedback(void *data __UNUSED__, Ecore_Thread *th __UNUSED__, void *msg)
57} 52}
58 53
59// BONUS (optional): called after th_do returns and has NOT been cancelled 54// BONUS (optional): called after th_do returns and has NOT been cancelled
60static void th_end(void *data __UNUSED__, Ecore_Thread *th __UNUSED__) { printf("thread ended\n"); } 55static void th_end(void *data, Ecore_Thread *th) { printf("thread ended\n"); }
61// BONUS (optional): called in mainloop AFTER thread has finished cancelling 56// BONUS (optional): called in mainloop AFTER thread has finished cancelling
62static void th_cancel(void *data __UNUSED__, Ecore_Thread *th __UNUSED__) { printf("thread cancelled\n"); } 57static void th_cancel(void *data, Ecore_Thread *th) { printf("thread cancelled\n"); }
63 58
64// just test cancelling the thread worker 59// just test cancelling the thread worker
65static void 60static void
66down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 61down(void *data, Evas *e, Evas_Object *obj, void *event_info)
67{ 62{
68 ecore_thread_cancel(thr); 63 ecore_thread_cancel(thr);
69} 64}
70 65
71EAPI_MAIN int 66EAPI_MAIN int
72elm_main(int argc __UNUSED__, char **argv __UNUSED__) 67elm_main(int argc, char **argv)
73{ 68{
74 Evas_Object *o, *bg; 69 Evas_Object *o, *bg;
75 70
diff --git a/legacy/elementary/src/examples/efl_thread_6.c b/legacy/elementary/src/examples/efl_thread_6.c
index df42cd9140..df355d6f05 100644
--- a/legacy/elementary/src/examples/efl_thread_6.c
+++ b/legacy/elementary/src/examples/efl_thread_6.c
@@ -1,11 +1,6 @@
1//Compile with: 1//Compile with:
2//gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#ifdef HAVE_CONFIG_H
5# include "elementary_config.h"
6#else
7# define __UNUSED__
8#endif
9 4
10static Evas_Object *win = NULL; 5static Evas_Object *win = NULL;
11 6
@@ -67,7 +62,7 @@ mandel(int *pix, int w, int h)
67} 62}
68 63
69static void 64static void
70th_do(void *data, Ecore_Thread *th __UNUSED__) 65th_do(void *data, Ecore_Thread *th)
71{ 66{
72 struct info *inf = data; 67 struct info *inf = data;
73 // CANNOT TOUCH inf->obj here! just inf->pix which is 256x256 @ 32bpp 68 // CANNOT TOUCH inf->obj here! just inf->pix which is 256x256 @ 32bpp
@@ -78,7 +73,7 @@ th_do(void *data, Ecore_Thread *th __UNUSED__)
78// END - code running in my custom thread instance 73// END - code running in my custom thread instance
79 74
80static void // thread job finished - collect results and put in img obj 75static void // thread job finished - collect results and put in img obj
81th_end(void *data, Ecore_Thread *th __UNUSED__) 76th_end(void *data, Ecore_Thread *th)
82{ 77{
83 struct info *inf = data; 78 struct info *inf = data;
84 79
@@ -90,7 +85,7 @@ th_end(void *data, Ecore_Thread *th __UNUSED__)
90} 85}
91 86
92static void // if the thread is cancelled - free pix, keep obj tho 87static void // if the thread is cancelled - free pix, keep obj tho
93th_cancel(void *data, Ecore_Thread *th __UNUSED__) 88th_cancel(void *data, Ecore_Thread *th)
94{ 89{
95 struct info *inf = data; 90 struct info *inf = data;
96 91
@@ -123,7 +118,7 @@ anim(void *data)
123} 118}
124 119
125EAPI_MAIN int 120EAPI_MAIN int
126elm_main(int argc __UNUSED__, char **argv __UNUSED__) 121elm_main(int argc, char **argv)
127{ 122{
128 Evas_Object *o, *bg; 123 Evas_Object *o, *bg;
129 int i; 124 int i;
diff --git a/legacy/elementary/src/examples/efl_thread_win32_1.c b/legacy/elementary/src/examples/efl_thread_win32_1.c
index c670810f74..1a1d5795f3 100644
--- a/legacy/elementary/src/examples/efl_thread_win32_1.c
+++ b/legacy/elementary/src/examples/efl_thread_win32_1.c
@@ -3,11 +3,6 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
11 6
12static Evas_Object *win = NULL; 7static Evas_Object *win = NULL;
13static Evas_Object *rect = NULL; 8static Evas_Object *rect = NULL;
diff --git a/legacy/elementary/src/examples/efl_thread_win32_2.c b/legacy/elementary/src/examples/efl_thread_win32_2.c
index cbc27962db..d1cad159c7 100644
--- a/legacy/elementary/src/examples/efl_thread_win32_2.c
+++ b/legacy/elementary/src/examples/efl_thread_win32_2.c
@@ -3,11 +3,6 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
11 6
12static Evas_Object *win = NULL; 7static Evas_Object *win = NULL;
13static Evas_Object *rect = NULL; 8static Evas_Object *rect = NULL;
diff --git a/legacy/elementary/src/examples/efl_thread_win32_3.c b/legacy/elementary/src/examples/efl_thread_win32_3.c
index 9b898ac102..e80be8cfd1 100644
--- a/legacy/elementary/src/examples/efl_thread_win32_3.c
+++ b/legacy/elementary/src/examples/efl_thread_win32_3.c
@@ -3,11 +3,6 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
11 6
12static Evas_Object *win = NULL; 7static Evas_Object *win = NULL;
13static Evas_Object *rect = NULL; 8static Evas_Object *rect = NULL;
diff --git a/legacy/elementary/src/examples/efl_thread_win32_4.c b/legacy/elementary/src/examples/efl_thread_win32_4.c
index 538ba715d8..957c1c1c93 100644
--- a/legacy/elementary/src/examples/efl_thread_win32_4.c
+++ b/legacy/elementary/src/examples/efl_thread_win32_4.c
@@ -3,11 +3,6 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
11 6
12static Evas_Object *win = NULL; 7static Evas_Object *win = NULL;
13static Evas_Object *rect = NULL; 8static Evas_Object *rect = NULL;
diff --git a/legacy/elementary/src/examples/entry_example.c b/legacy/elementary/src/examples/entry_example.c
index 1bc55ce335..b28b76cff0 100644
--- a/legacy/elementary/src/examples/entry_example.c
+++ b/legacy/elementary/src/examples/entry_example.c
@@ -2,11 +2,6 @@
2 * gcc -o entry_example entry_example.c `pkg-config --cflags --libs elementary` 2 * gcc -o entry_example entry_example.c `pkg-config --cflags --libs elementary`
3 */ 3 */
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__ __attribute__((unused))
9#endif
10 5
11typedef struct 6typedef struct
12{ 7{
@@ -38,7 +33,7 @@ _edit_buffer_insert(Evas_Object *e, const char *text)
38} 33}
39 34
40static void 35static void
41_it_sel_cb(void *data, Evas_Object *obj __UNUSED__, void *event) 36_it_sel_cb(void *data, Evas_Object *obj, void *event)
42{ 37{
43 App_Inwin_Data *aid = data; 38 App_Inwin_Data *aid = data;
44 Elm_Object_Item *gg_it = event; 39 Elm_Object_Item *gg_it = event;
@@ -49,7 +44,7 @@ _it_sel_cb(void *data, Evas_Object *obj __UNUSED__, void *event)
49} 44}
50 45
51static char * 46static char *
52_emo_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) 47_emo_label_get(void *data, Evas_Object *obj, const char *part)
53{ 48{
54 return strdup(data); 49 return strdup(data);
55} 50}
@@ -67,7 +62,7 @@ _emo_content_get(void *data, Evas_Object *obj, const char *part)
67} 62}
68 63
69static void 64static void
70_emo_del(void *data, Evas_Object *obj __UNUSED__) 65_emo_del(void *data, Evas_Object *obj)
71{ 66{
72 free(data); 67 free(data);
73} 68}
@@ -112,7 +107,7 @@ _page_grid_add(Evas_Object *parent, App_Inwin_Data *aid)
112} 107}
113 108
114static void 109static void
115_btn_insert_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 110_btn_insert_cb(void *data, Evas_Object *obj, void *event)
116{ 111{
117 App_Inwin_Data *aid = data; 112 App_Inwin_Data *aid = data;
118 const char *size[] = { 113 const char *size[] = {
@@ -135,7 +130,7 @@ _btn_insert_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
135} 130}
136 131
137static void 132static void
138_width_changed_cb(void *data, Evas_Object *obj, void *event __UNUSED__) 133_width_changed_cb(void *data, Evas_Object *obj, void *event)
139{ 134{
140 App_Inwin_Data *aid = data; 135 App_Inwin_Data *aid = data;
141 136
@@ -143,7 +138,7 @@ _width_changed_cb(void *data, Evas_Object *obj, void *event __UNUSED__)
143} 138}
144 139
145static void 140static void
146_height_changed_cb(void *data, Evas_Object *obj, void *event __UNUSED__) 141_height_changed_cb(void *data, Evas_Object *obj, void *event)
147{ 142{
148 App_Inwin_Data *aid = data; 143 App_Inwin_Data *aid = data;
149 144
@@ -293,7 +288,7 @@ _page_settings_add(Evas_Object *parent, App_Inwin_Data *aid)
293} 288}
294 289
295static void 290static void
296_insert_cancel_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 291_insert_cancel_cb(void *data, Evas_Object *obj, void *event)
297{ 292{
298 App_Inwin_Data *aid = data; 293 App_Inwin_Data *aid = data;
299 294
@@ -301,13 +296,13 @@ _insert_cancel_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED_
301} 296}
302 297
303static void 298static void
304_inwin_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 299_inwin_del_cb(void *data, Evas *e, Evas_Object *obj, void *event)
305{ 300{
306 free(data); 301 free(data);
307} 302}
308 303
309static void 304static void
310_image_insert_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 305_image_insert_cb(void *data, Evas_Object *obj, void *event)
311{ 306{
312 App_Data *ad = data; 307 App_Data *ad = data;
313 App_Inwin_Data *aid; 308 App_Inwin_Data *aid;
@@ -373,7 +368,7 @@ _image_insert_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__
373} 368}
374 369
375static void 370static void
376_format_change_cb(void *data, Evas_Object *obj, void *event __UNUSED__) 371_format_change_cb(void *data, Evas_Object *obj, void *event)
377{ 372{
378 App_Data *ad = data; 373 App_Data *ad = data;
379 char fmt_open[5], fmt_close[6]; 374 char fmt_open[5], fmt_close[6];
@@ -434,7 +429,7 @@ all_done:
434} 429}
435 430
436static void 431static void
437_autosave_change_cb(void *data, Evas_Object *obj, void *event __UNUSED__) 432_autosave_change_cb(void *data, Evas_Object *obj, void *event)
438{ 433{
439 App_Data *ad = data; 434 App_Data *ad = data;
440 Eina_Bool state = elm_check_state_get(obj); 435 Eina_Bool state = elm_check_state_get(obj);
@@ -444,7 +439,7 @@ _autosave_change_cb(void *data, Evas_Object *obj, void *event __UNUSED__)
444} 439}
445 440
446static void 441static void
447_edit_dblclick_cb(void *data __UNUSED__, Evas_Object *obj, void *event __UNUSED__) 442_edit_dblclick_cb(void *data, Evas_Object *obj, void *event)
448{ 443{
449 int current_cursor; 444 int current_cursor;
450 445
@@ -479,7 +474,7 @@ _edit_dblclick_cb(void *data __UNUSED__, Evas_Object *obj, void *event __UNUSED_
479} 474}
480 475
481static void 476static void
482_edit_tplclick_cb(void *data __UNUSED__, Evas_Object *obj, void *event __UNUSED__) 477_edit_tplclick_cb(void *data, Evas_Object *obj, void *event)
483{ 478{
484 elm_entry_cursor_line_begin_set(obj); 479 elm_entry_cursor_line_begin_set(obj);
485 elm_entry_cursor_selection_begin(obj); 480 elm_entry_cursor_selection_begin(obj);
@@ -488,14 +483,14 @@ _edit_tplclick_cb(void *data __UNUSED__, Evas_Object *obj, void *event __UNUSED_
488} 483}
489 484
490static void 485static void
491_win_del_cb(void *data __UNUSED__, Evas_Object *obj, void *event __UNUSED__) 486_win_del_cb(void *data, Evas_Object *obj, void *event)
492{ 487{
493 evas_object_del(obj); 488 evas_object_del(obj);
494 elm_exit(); 489 elm_exit();
495} 490}
496 491
497EAPI_MAIN int 492EAPI_MAIN int
498elm_main(int argc __UNUSED__, char *argv[] __UNUSED__) 493elm_main(int argc, char *argv[])
499{ 494{
500 Evas_Object *win, *bg, *box, *tb, *en, *o, *icon; 495 Evas_Object *win, *bg, *box, *tb, *en, *o, *icon;
501 App_Data app; 496 App_Data app;
diff --git a/legacy/elementary/src/examples/fileselector_button_example.c b/legacy/elementary/src/examples/fileselector_button_example.c
index 9cac8070a9..a844c48a18 100644
--- a/legacy/elementary/src/examples/fileselector_button_example.c
+++ b/legacy/elementary/src/examples/fileselector_button_example.c
@@ -10,23 +10,18 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_on_done(void *data __UNUSED__, 15_on_done(void *data,
21 Evas_Object *obj __UNUSED__, 16 Evas_Object *obj,
22 void *event_info __UNUSED__) 17 void *event_info)
23{ 18{
24 elm_exit(); 19 elm_exit();
25} 20}
26 21
27static void /* hook on the sole smart callback */ 22static void /* hook on the sole smart callback */
28_file_chosen(void *data, 23_file_chosen(void *data,
29 Evas_Object *obj __UNUSED__, 24 Evas_Object *obj,
30 void *event_info) 25 void *event_info)
31{ 26{
32 Evas_Object *entry = data; 27 Evas_Object *entry = data;
@@ -43,8 +38,8 @@ _file_chosen(void *data,
43/* toggle inwin mode */ 38/* toggle inwin mode */
44static void 39static void
45_inwin_mode_toggle(void *data, 40_inwin_mode_toggle(void *data,
46 Evas_Object *obj __UNUSED__, 41 Evas_Object *obj,
47 void *event_info __UNUSED__) 42 void *event_info)
48{ 43{
49 Evas_Object *fs_bt = data; 44 Evas_Object *fs_bt = data;
50 Eina_Bool old_val = elm_fileselector_button_inwin_mode_get(fs_bt); 45 Eina_Bool old_val = elm_fileselector_button_inwin_mode_get(fs_bt);
@@ -55,8 +50,8 @@ _inwin_mode_toggle(void *data,
55 50
56static void 51static void
57_current_sel_toggle(void *data, 52_current_sel_toggle(void *data,
58 Evas_Object *obj __UNUSED__, 53 Evas_Object *obj,
59 void *event_info __UNUSED__) 54 void *event_info)
60{ 55{
61 Evas_Object *fs_bt = data; 56 Evas_Object *fs_bt = data;
62 Eina_Bool old_val = elm_fileselector_button_is_save_get(fs_bt); 57 Eina_Bool old_val = elm_fileselector_button_is_save_get(fs_bt);
@@ -68,8 +63,8 @@ _current_sel_toggle(void *data,
68 63
69static void 64static void
70_folder_only_toggle(void *data, 65_folder_only_toggle(void *data,
71 Evas_Object *obj __UNUSED__, 66 Evas_Object *obj,
72 void *event_info __UNUSED__) 67 void *event_info)
73{ 68{
74 Evas_Object *fs_bt = data; 69 Evas_Object *fs_bt = data;
75 Eina_Bool old_val = elm_fileselector_button_folder_only_get(fs_bt); 70 Eina_Bool old_val = elm_fileselector_button_folder_only_get(fs_bt);
@@ -80,8 +75,8 @@ _folder_only_toggle(void *data,
80 75
81static void 76static void
82_expandable_toggle(void *data, 77_expandable_toggle(void *data,
83 Evas_Object *obj __UNUSED__, 78 Evas_Object *obj,
84 void *event_info __UNUSED__) 79 void *event_info)
85{ 80{
86 Evas_Object *fs_bt = data; 81 Evas_Object *fs_bt = data;
87 Eina_Bool old_val = elm_fileselector_button_expandable_get(fs_bt); 82 Eina_Bool old_val = elm_fileselector_button_expandable_get(fs_bt);
@@ -91,8 +86,8 @@ _expandable_toggle(void *data,
91} 86}
92 87
93EAPI_MAIN int 88EAPI_MAIN int
94elm_main(int argc __UNUSED__, 89elm_main(int argc,
95 char **argv __UNUSED__) 90 char **argv)
96{ 91{
97 Evas_Object *win, *bg, *vbox, *hbox, *ic, *ck, *fs_bt, *en, *lb, *sep; 92 Evas_Object *win, *bg, *vbox, *hbox, *ic, *ck, *fs_bt, *en, *lb, *sep;
98 93
diff --git a/legacy/elementary/src/examples/fileselector_entry_example.c b/legacy/elementary/src/examples/fileselector_entry_example.c
index 97d2cbc2a2..5c987d0e99 100644
--- a/legacy/elementary/src/examples/fileselector_entry_example.c
+++ b/legacy/elementary/src/examples/fileselector_entry_example.c
@@ -10,24 +10,19 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_on_done(void *data __UNUSED__, 15_on_done(void *data,
21 Evas_Object *obj __UNUSED__, 16 Evas_Object *obj,
22 void *event_info __UNUSED__) 17 void *event_info)
23{ 18{
24 elm_exit(); 19 elm_exit();
25} 20}
26 21
27/* hook on the file,chosen smart callback */ 22/* hook on the file,chosen smart callback */
28static void 23static void
29_file_chosen(void *data __UNUSED__, 24_file_chosen(void *data,
30 Evas_Object *obj __UNUSED__, 25 Evas_Object *obj,
31 void *event_info) 26 void *event_info)
32{ 27{
33 const char *file = event_info; 28 const char *file = event_info;
@@ -41,8 +36,8 @@ _file_chosen(void *data __UNUSED__,
41/* toggle inwin mode */ 36/* toggle inwin mode */
42static void 37static void
43_inwin_mode_toggle(void *data, 38_inwin_mode_toggle(void *data,
44 Evas_Object *obj __UNUSED__, 39 Evas_Object *obj,
45 void *event_info __UNUSED__) 40 void *event_info)
46{ 41{
47 Evas_Object *fs_entry = data; 42 Evas_Object *fs_entry = data;
48 Eina_Bool old_val = elm_fileselector_entry_inwin_mode_get(fs_entry); 43 Eina_Bool old_val = elm_fileselector_entry_inwin_mode_get(fs_entry);
@@ -53,8 +48,8 @@ _inwin_mode_toggle(void *data,
53 48
54static void 49static void
55_current_sel_toggle(void *data, 50_current_sel_toggle(void *data,
56 Evas_Object *obj __UNUSED__, 51 Evas_Object *obj,
57 void *event_info __UNUSED__) 52 void *event_info)
58{ 53{
59 Evas_Object *fs_entry = data; 54 Evas_Object *fs_entry = data;
60 Eina_Bool old_val = elm_fileselector_entry_is_save_get(fs_entry); 55 Eina_Bool old_val = elm_fileselector_entry_is_save_get(fs_entry);
@@ -66,8 +61,8 @@ _current_sel_toggle(void *data,
66 61
67static void 62static void
68_folder_only_toggle(void *data, 63_folder_only_toggle(void *data,
69 Evas_Object *obj __UNUSED__, 64 Evas_Object *obj,
70 void *event_info __UNUSED__) 65 void *event_info)
71{ 66{
72 Evas_Object *fs_entry = data; 67 Evas_Object *fs_entry = data;
73 Eina_Bool old_val = elm_fileselector_entry_folder_only_get(fs_entry); 68 Eina_Bool old_val = elm_fileselector_entry_folder_only_get(fs_entry);
@@ -78,8 +73,8 @@ _folder_only_toggle(void *data,
78 73
79static void 74static void
80_expandable_toggle(void *data, 75_expandable_toggle(void *data,
81 Evas_Object *obj __UNUSED__, 76 Evas_Object *obj,
82 void *event_info __UNUSED__) 77 void *event_info)
83{ 78{
84 Evas_Object *fs_entry = data; 79 Evas_Object *fs_entry = data;
85 Eina_Bool old_val = elm_fileselector_entry_expandable_get(fs_entry); 80 Eina_Bool old_val = elm_fileselector_entry_expandable_get(fs_entry);
@@ -89,8 +84,8 @@ _expandable_toggle(void *data,
89} 84}
90 85
91EAPI_MAIN int 86EAPI_MAIN int
92elm_main(int argc __UNUSED__, 87elm_main(int argc,
93 char **argv __UNUSED__) 88 char **argv)
94{ 89{
95 Evas_Object *win, *bg, *vbox, *hbox, *ic, *ck, *fs_entry, *sep; 90 Evas_Object *win, *bg, *vbox, *hbox, *ic, *ck, *fs_entry, *sep;
96 91
diff --git a/legacy/elementary/src/examples/fileselector_example.c b/legacy/elementary/src/examples/fileselector_example.c
index 297ee77f8a..9e5b06d62d 100644
--- a/legacy/elementary/src/examples/fileselector_example.c
+++ b/legacy/elementary/src/examples/fileselector_example.c
@@ -10,24 +10,19 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static void 14static void
20_on_done(void *data __UNUSED__, 15_on_done(void *data,
21 Evas_Object *obj __UNUSED__, 16 Evas_Object *obj,
22 void *event_info __UNUSED__) 17 void *event_info)
23{ 18{
24 elm_exit(); 19 elm_exit();
25} 20}
26 21
27/* 'done' cb */ 22/* 'done' cb */
28static void 23static void
29_fs_done(void *data __UNUSED__, 24_fs_done(void *data,
30 Evas_Object *obj __UNUSED__, 25 Evas_Object *obj,
31 void *event_info) 26 void *event_info)
32{ 27{
33 const char *selected = event_info; 28 const char *selected = event_info;
@@ -42,8 +37,8 @@ _fs_done(void *data __UNUSED__,
42 37
43/* 'selected' cb */ 38/* 'selected' cb */
44static void 39static void
45_fs_selected(void *data __UNUSED__, 40_fs_selected(void *data,
46 Evas_Object *obj __UNUSED__, 41 Evas_Object *obj,
47 void *event_info) 42 void *event_info)
48{ 43{
49 const char *selected = event_info; 44 const char *selected = event_info;
@@ -54,8 +49,8 @@ _fs_selected(void *data __UNUSED__,
54 49
55static void 50static void
56_is_save_clicked(void *data, 51_is_save_clicked(void *data,
57 Evas_Object *obj __UNUSED__, 52 Evas_Object *obj,
58 void *event_info __UNUSED__) 53 void *event_info)
59{ 54{
60 Evas_Object *fs = data; 55 Evas_Object *fs = data;
61 Eina_Bool old_val = elm_fileselector_is_save_get(fs); 56 Eina_Bool old_val = elm_fileselector_is_save_get(fs);
@@ -68,8 +63,8 @@ _is_save_clicked(void *data,
68 63
69static void 64static void
70_folder_only_clicked(void *data, 65_folder_only_clicked(void *data,
71 Evas_Object *obj __UNUSED__, 66 Evas_Object *obj,
72 void *event_info __UNUSED__) 67 void *event_info)
73{ 68{
74 Evas_Object *fs = data; 69 Evas_Object *fs = data;
75 Eina_Bool old_val = elm_fileselector_folder_only_get(fs); 70 Eina_Bool old_val = elm_fileselector_folder_only_get(fs);
@@ -82,8 +77,8 @@ _folder_only_clicked(void *data,
82 77
83static void 78static void
84_expandable_clicked(void *data, 79_expandable_clicked(void *data,
85 Evas_Object *obj __UNUSED__, 80 Evas_Object *obj,
86 void *event_info __UNUSED__) 81 void *event_info)
87{ 82{
88 Evas_Object *fs = data; 83 Evas_Object *fs = data;
89 Eina_Bool old_val = elm_fileselector_expandable_get(fs); 84 Eina_Bool old_val = elm_fileselector_expandable_get(fs);
@@ -96,8 +91,8 @@ _expandable_clicked(void *data,
96 91
97static void 92static void
98_sel_get_clicked(void *data, 93_sel_get_clicked(void *data,
99 Evas_Object *obj __UNUSED__, 94 Evas_Object *obj,
100 void *event_info __UNUSED__) 95 void *event_info)
101{ 96{
102 Evas_Object *fs = data; 97 Evas_Object *fs = data;
103 printf("Current selection is: %s\n", elm_fileselector_selected_get(fs)); 98 printf("Current selection is: %s\n", elm_fileselector_selected_get(fs));
@@ -105,8 +100,8 @@ _sel_get_clicked(void *data,
105 100
106static void 101static void
107_path_get_clicked(void *data, 102_path_get_clicked(void *data,
108 Evas_Object *obj __UNUSED__, 103 Evas_Object *obj,
109 void *event_info __UNUSED__) 104 void *event_info)
110{ 105{
111 Evas_Object *fs = data; 106 Evas_Object *fs = data;
112 printf("Current selection's directory path is: %s\n", 107 printf("Current selection's directory path is: %s\n",
@@ -114,8 +109,8 @@ _path_get_clicked(void *data,
114} 109}
115 110
116EAPI_MAIN int 111EAPI_MAIN int
117elm_main(int argc __UNUSED__, 112elm_main(int argc,
118 char **argv __UNUSED__) 113 char **argv)
119{ 114{
120 Evas_Object *win, *fs, *bg, *vbox, *buttons_bx, *bt, *sep, *bx; 115 Evas_Object *win, *fs, *bg, *vbox, *buttons_bx, *bt, *sep, *bx;
121 116
diff --git a/legacy/elementary/src/examples/flip_example_01.c b/legacy/elementary/src/examples/flip_example_01.c
index f205e23a6f..41a0ef61fa 100644
--- a/legacy/elementary/src/examples/flip_example_01.c
+++ b/legacy/elementary/src/examples/flip_example_01.c
@@ -2,16 +2,11 @@
2//gcc -o flip_example_01 flip_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o flip_example_01 flip_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void _change_interaction(void *data, Evas_Object *obj, void *event_info); 6static void _change_interaction(void *data, Evas_Object *obj, void *event_info);
12 7
13EAPI_MAIN int 8EAPI_MAIN int
14elm_main(int argc __UNUSED__, char **argv __UNUSED__) 9elm_main(int argc, char **argv)
15{ 10{
16 Evas_Object *win, *bg, *rect, *rect2, *flip, *radio, *radio2, *radio3; 11 Evas_Object *win, *bg, *rect, *rect2, *flip, *radio, *radio2, *radio3;
17 12
@@ -89,7 +84,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
89ELM_MAIN() 84ELM_MAIN()
90 85
91static void 86static void
92_change_interaction(void *data, Evas_Object *obj, void *event_info __UNUSED__) 87_change_interaction(void *data, Evas_Object *obj, void *event_info)
93{ 88{
94 elm_flip_interaction_set(data, elm_radio_state_value_get(obj)); 89 elm_flip_interaction_set(data, elm_radio_state_value_get(obj));
95 elm_flip_go(data, ELM_FLIP_ROTATE_XZ_CENTER_AXIS); 90 elm_flip_go(data, ELM_FLIP_ROTATE_XZ_CENTER_AXIS);
diff --git a/legacy/elementary/src/examples/flipselector_example.c b/legacy/elementary/src/examples/flipselector_example.c
index 504116bd9d..a24e4c98a9 100644
--- a/legacy/elementary/src/examples/flipselector_example.c
+++ b/legacy/elementary/src/examples/flipselector_example.c
@@ -10,11 +10,6 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17#endif
18 13
19static const char *commands = \ 14static const char *commands = \
20 "commands are:\n" 15 "commands are:\n"
@@ -26,17 +21,17 @@ static const char *commands = \
26 "\th - print help\n"; 21 "\th - print help\n";
27 22
28static void 23static void
29_on_done(void *data __UNUSED__, 24_on_done(void *data,
30 Evas_Object *obj __UNUSED__, 25 Evas_Object *obj,
31 void *event_info __UNUSED__) 26 void *event_info)
32{ 27{
33 elm_exit(); 28 elm_exit();
34} 29}
35 30
36void /* unselect the item shown in the flip selector */ 31void /* unselect the item shown in the flip selector */
37_unsel_cb(void *data, 32_unsel_cb(void *data,
38 Evas_Object *obj __UNUSED__, 33 Evas_Object *obj,
39 void *event_info __UNUSED__) 34 void *event_info)
40{ 35{
41 Elm_Object_Item *it; 36 Elm_Object_Item *it;
42 Evas_Object *fp = data; 37 Evas_Object *fp = data;
@@ -47,8 +42,8 @@ _unsel_cb(void *data,
47 42
48void /* delete the item shown in the flip selector */ 43void /* delete the item shown in the flip selector */
49_del_cb(void *data, 44_del_cb(void *data,
50 Evas_Object *obj __UNUSED__, 45 Evas_Object *obj,
51 void *event_info __UNUSED__) 46 void *event_info)
52{ 47{
53 Elm_Object_Item *it; 48 Elm_Object_Item *it;
54 Evas_Object *fp = data; 49 Evas_Object *fp = data;
@@ -58,25 +53,25 @@ _del_cb(void *data,
58} 53}
59 54
60void /* underflow callback */ 55void /* underflow callback */
61_underflow_cb(void *data __UNUSED__, 56_underflow_cb(void *data,
62 Evas_Object *obj __UNUSED__, 57 Evas_Object *obj,
63 void *event_info __UNUSED__) 58 void *event_info)
64{ 59{
65 fprintf(stdout, "Underflow!\n"); 60 fprintf(stdout, "Underflow!\n");
66} 61}
67 62
68void /* overflow callback */ 63void /* overflow callback */
69_overflow_cb(void *data __UNUSED__, 64_overflow_cb(void *data,
70 Evas_Object *obj __UNUSED__, 65 Evas_Object *obj,
71 void *event_info __UNUSED__) 66 void *event_info)
72{ 67{
73 fprintf(stdout, "Overflow!\n"); 68 fprintf(stdout, "Overflow!\n");
74} 69}
75 70
76static void 71static void
77_on_keydown(void *data, 72_on_keydown(void *data,
78 Evas_Object *object __UNUSED__, 73 Evas_Object *object,
79 Evas_Object *src __UNUSED__, 74 Evas_Object *src,
80 Evas_Callback_Type type, 75 Evas_Callback_Type type,
81 void *event_info) 76 void *event_info)
82{ 77{
@@ -147,7 +142,7 @@ _on_keydown(void *data,
147} 142}
148 143
149EAPI_MAIN int 144EAPI_MAIN int
150elm_main(int argc __UNUSED__, char **argv __UNUSED__) 145elm_main(int argc, char **argv)
151{ 146{
152 unsigned int i; 147 unsigned int i;
153 Evas_Object *win, *bg, *bx, *fp, *bt; 148 Evas_Object *win, *bg, *bx, *fp, *bt;
diff --git a/legacy/elementary/src/examples/frame_example_01.c b/legacy/elementary/src/examples/frame_example_01.c
index ee0a40cf5a..ed862b91f8 100644
--- a/legacy/elementary/src/examples/frame_example_01.c
+++ b/legacy/elementary/src/examples/frame_example_01.c
@@ -2,14 +2,9 @@
2//gcc -o frame_example_01 frame_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o frame_example_01 frame_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11EAPI_MAIN int 6EAPI_MAIN int
12elm_main(int argc __UNUSED__, char **argv __UNUSED__) 7elm_main(int argc, char **argv)
13{ 8{
14 Evas_Object *win, *bg; 9 Evas_Object *win, *bg;
15 Evas_Object *f1, *r1, *f2, *r2, *f3, *r3, *f4, *r4; 10 Evas_Object *f1, *r1, *f2, *r2, *f3, *r3, *f4, *r4;
diff --git a/legacy/elementary/src/examples/general_funcs_example.c b/legacy/elementary/src/examples/general_funcs_example.c
index 225b8e092b..97388095b3 100644
--- a/legacy/elementary/src/examples/general_funcs_example.c
+++ b/legacy/elementary/src/examples/general_funcs_example.c
@@ -4,14 +4,9 @@
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6 6
7#ifdef HAVE_CONFIG_H 7#define PACKAGE_BIN_DIR "/usr/bin"
8# include "elementary_config.h" 8#define PACKAGE_LIB_DIR "/usr/lib"
9#else 9#define PACKAGE_DATA_DIR "/usr/share/elementary"
10# define __UNUSED__
11# define PACKAGE_BIN_DIR "/usr/bin"
12# define PACKAGE_LIB_DIR "/usr/lib"
13# define PACKAGE_DATA_DIR "/usr/share/elementary"
14#endif
15 10
16#define WIDTH 300 11#define WIDTH 300
17#define HEIGHT 300 12#define HEIGHT 300
@@ -26,51 +21,51 @@ struct test_data
26struct test_data d = {NULL, EINA_TRUE, EINA_TRUE}; 21struct test_data d = {NULL, EINA_TRUE, EINA_TRUE};
27 22
28static void 23static void
29_btn_enabled_cb(void *data __UNUSED__, 24_btn_enabled_cb(void *data,
30 Evas_Object *obj __UNUSED__, 25 Evas_Object *obj,
31 void *event __UNUSED__) 26 void *event)
32{ 27{
33 elm_object_disabled_set(d.btn, !d.btn_enabled); 28 elm_object_disabled_set(d.btn, !d.btn_enabled);
34} 29}
35 30
36static void 31static void
37/* focus callback */ 32/* focus callback */
38_btn_focus_cb(void *data __UNUSED__, 33_btn_focus_cb(void *data,
39 Evas_Object *obj __UNUSED__, 34 Evas_Object *obj,
40 void *event __UNUSED__) 35 void *event)
41{ 36{
42 elm_object_focus_set(d.btn, EINA_TRUE); 37 elm_object_focus_set(d.btn, EINA_TRUE);
43} 38}
44 39
45static void 40static void
46/* unfocus callback */ 41/* unfocus callback */
47_btn_unfocus_cb(void *data __UNUSED__, 42_btn_unfocus_cb(void *data,
48 Evas_Object *obj __UNUSED__, 43 Evas_Object *obj,
49 void *event __UNUSED__) 44 void *event)
50{ 45{
51 elm_object_focus_set(d.btn, EINA_FALSE); 46 elm_object_focus_set(d.btn, EINA_FALSE);
52} 47}
53 48
54static void 49static void
55/* focus allow callback */ 50/* focus allow callback */
56_btn_focus_allow_cb(void *data __UNUSED__, 51_btn_focus_allow_cb(void *data,
57 Evas_Object *obj __UNUSED__, 52 Evas_Object *obj,
58 void *event __UNUSED__) 53 void *event)
59{ 54{
60 elm_object_focus_allow_set(d.btn, d.btn_gets_focus); 55 elm_object_focus_allow_set(d.btn, d.btn_gets_focus);
61} 56}
62 57
63static void /* scaling callback */ 58static void /* scaling callback */
64_btn_scale_cb(void *data __UNUSED__, 59_btn_scale_cb(void *data,
65 Evas_Object *obj, 60 Evas_Object *obj,
66 void *event __UNUSED__) 61 void *event)
67{ 62{
68 elm_object_scale_set(d.btn, elm_slider_value_get(obj)); 63 elm_object_scale_set(d.btn, elm_slider_value_get(obj));
69} 64}
70 65
71EAPI_MAIN int 66EAPI_MAIN int
72elm_main(int argc __UNUSED__, 67elm_main(int argc,
73 char **argv __UNUSED__) 68 char **argv)
74{ 69{
75 int h; 70 int h;
76 Evas_Object *win, *bg, *box, *frame, *check, *b, *slider; 71 Evas_Object *win, *bg, *box, *frame, *check, *b, *slider;
diff --git a/legacy/elementary/src/examples/gengrid_example.c b/legacy/elementary/src/examples/gengrid_example.c
index b85378b46b..7315d4c898 100644
--- a/legacy/elementary/src/examples/gengrid_example.c
+++ b/legacy/elementary/src/examples/gengrid_example.c
@@ -10,12 +10,7 @@
10 */ 10 */
11 11
12#include <Elementary.h> 12#include <Elementary.h>
13#ifdef HAVE_CONFIG_H 13#define PACKAGE_DATA_DIR "../../data"
14# include "elementary_config.h"
15#else
16# define __UNUSED__
17# define PACKAGE_DATA_DIR "../../data"
18#endif
19 14
20typedef struct _Example_Item 15typedef struct _Example_Item
21{ 16{
@@ -39,9 +34,9 @@ static Elm_Gengrid_Item_Class *gic = NULL;
39static Evas_Object *before_bt, *after_bt; 34static Evas_Object *before_bt, *after_bt;
40 35
41static void 36static void
42_on_done(void *data __UNUSED__, 37_on_done(void *data,
43 Evas_Object *obj __UNUSED__, 38 Evas_Object *obj,
44 void *event_info __UNUSED__) 39 void *event_info)
45{ 40{
46 elm_exit(); 41 elm_exit();
47} 42}
@@ -50,7 +45,7 @@ _on_done(void *data __UNUSED__,
50static void 45static void
51_horizontal_grid(void *data, 46_horizontal_grid(void *data,
52 Evas_Object *obj, 47 Evas_Object *obj,
53 void *event_info __UNUSED__) 48 void *event_info)
54{ 49{
55 Evas_Object *grid = data; 50 Evas_Object *grid = data;
56 51
@@ -61,7 +56,7 @@ _horizontal_grid(void *data,
61static void 56static void
62_always_select_change(void *data, 57_always_select_change(void *data,
63 Evas_Object *obj, 58 Evas_Object *obj,
64 void *event_info __UNUSED__) 59 void *event_info)
65{ 60{
66 Evas_Object *grid = data; 61 Evas_Object *grid = data;
67 Eina_Bool always = elm_check_state_get(obj); 62 Eina_Bool always = elm_check_state_get(obj);
@@ -79,7 +74,7 @@ _always_select_change(void *data,
79static void 74static void
80_bouncing_change(void *data, 75_bouncing_change(void *data,
81 Evas_Object *obj, 76 Evas_Object *obj,
82 void *event_info __UNUSED__) 77 void *event_info)
83{ 78{
84 Evas_Object *grid = data; 79 Evas_Object *grid = data;
85 Eina_Bool bounce = elm_check_state_get(obj); 80 Eina_Bool bounce = elm_check_state_get(obj);
@@ -94,7 +89,7 @@ _bouncing_change(void *data,
94static void 89static void
95_multi_change(void *data, 90_multi_change(void *data,
96 Evas_Object *obj, 91 Evas_Object *obj,
97 void *event_info __UNUSED__) 92 void *event_info)
98{ 93{
99 Evas_Object *grid = data; 94 Evas_Object *grid = data;
100 Eina_Bool multi = elm_check_state_get(obj); 95 Eina_Bool multi = elm_check_state_get(obj);
@@ -120,7 +115,7 @@ _multi_change(void *data,
120static void 115static void
121_no_sel_change(void *data, 116_no_sel_change(void *data,
122 Evas_Object *obj, 117 Evas_Object *obj,
123 void *event_info __UNUSED__) 118 void *event_info)
124{ 119{
125 Evas_Object *grid = data; 120 Evas_Object *grid = data;
126 Eina_Bool no_sel = elm_check_state_get(obj); 121 Eina_Bool no_sel = elm_check_state_get(obj);
@@ -137,7 +132,7 @@ _no_sel_change(void *data,
137/* item selection callback */ 132/* item selection callback */
138static void 133static void
139_grid_sel(void *data, 134_grid_sel(void *data,
140 Evas_Object *obj __UNUSED__, 135 Evas_Object *obj,
141 void *event_info) 136 void *event_info)
142{ 137{
143 unsigned int x, y; 138 unsigned int x, y;
@@ -164,8 +159,8 @@ _item_new(void)
164/* "insert before" callback */ 159/* "insert before" callback */
165static void 160static void
166_before_bt_clicked(void *data, 161_before_bt_clicked(void *data,
167 Evas_Object *obj __UNUSED__, 162 Evas_Object *obj,
168 void *event_info __UNUSED__) 163 void *event_info)
169{ 164{
170 Example_Item *it; 165 Example_Item *it;
171 Evas_Object *grid = data; 166 Evas_Object *grid = data;
@@ -182,8 +177,8 @@ _before_bt_clicked(void *data,
182/* "insert after" callback */ 177/* "insert after" callback */
183static void 178static void
184_after_bt_clicked(void *data, 179_after_bt_clicked(void *data,
185 Evas_Object *obj __UNUSED__, 180 Evas_Object *obj,
186 void *event_info __UNUSED__) 181 void *event_info)
187{ 182{
188 Example_Item *it; 183 Example_Item *it;
189 Evas_Object *grid = data; 184 Evas_Object *grid = data;
@@ -200,8 +195,8 @@ _after_bt_clicked(void *data,
200/* prepend an item */ 195/* prepend an item */
201static void 196static void
202_prepend_bt_clicked(void *data, 197_prepend_bt_clicked(void *data,
203 Evas_Object *obj __UNUSED__, 198 Evas_Object *obj,
204 void *event_info __UNUSED__) 199 void *event_info)
205{ 200{
206 Example_Item *it; 201 Example_Item *it;
207 Evas_Object *grid = data; 202 Evas_Object *grid = data;
@@ -213,8 +208,8 @@ _prepend_bt_clicked(void *data,
213/* append an item */ 208/* append an item */
214static void 209static void
215_append_bt_clicked(void *data, 210_append_bt_clicked(void *data,
216 Evas_Object *obj __UNUSED__, 211 Evas_Object *obj,
217 void *event_info __UNUSED__) 212 void *event_info)
218{ 213{
219 Evas_Object *grid = data; 214 Evas_Object *grid = data;
220 Example_Item *it = _item_new(); 215 Example_Item *it = _item_new();
@@ -225,8 +220,8 @@ _append_bt_clicked(void *data,
225/* delete items */ 220/* delete items */
226static void 221static void
227_clear_cb(void *data, 222_clear_cb(void *data,
228 Evas_Object *obj __UNUSED__, 223 Evas_Object *obj,
229 void *event_info __UNUSED__) 224 void *event_info)
230{ 225{
231 elm_gengrid_clear(data); 226 elm_gengrid_clear(data);
232 227
@@ -236,8 +231,8 @@ _clear_cb(void *data,
236/* bring in 1st item */ 231/* bring in 1st item */
237static void 232static void
238_bring_1st_clicked(void *data, 233_bring_1st_clicked(void *data,
239 Evas_Object *obj __UNUSED__, 234 Evas_Object *obj,
240 void *event_info __UNUSED__) 235 void *event_info)
241{ 236{
242 Elm_Object_Item *gg_it = elm_gengrid_first_item_get(data); 237 Elm_Object_Item *gg_it = elm_gengrid_first_item_get(data);
243 238
@@ -249,8 +244,8 @@ _bring_1st_clicked(void *data,
249/* show last item */ 244/* show last item */
250static void 245static void
251_show_last_clicked(void *data, 246_show_last_clicked(void *data,
252 Evas_Object *obj __UNUSED__, 247 Evas_Object *obj,
253 void *event_info __UNUSED__) 248 void *event_info)
254{ 249{
255 Elm_Object_Item *gg_it = elm_gengrid_last_item_get(data); 250 Elm_Object_Item *gg_it = elm_gengrid_last_item_get(data);
256 251
@@ -262,8 +257,8 @@ _show_last_clicked(void *data,
262/* disable selected item */ 257/* disable selected item */
263static void 258static void
264_toggle_disabled_cb(void *data, 259_toggle_disabled_cb(void *data,
265 Evas_Object *obj __UNUSED__, 260 Evas_Object *obj,
266 void *event_info __UNUSED__) 261 void *event_info)
267{ 262{
268 Elm_Object_Item *gg_it = elm_gengrid_selected_item_get(data); 263 Elm_Object_Item *gg_it = elm_gengrid_selected_item_get(data);
269 264
@@ -277,7 +272,7 @@ _toggle_disabled_cb(void *data,
277static void 272static void
278_size_changed(void *data, 273_size_changed(void *data,
279 Evas_Object *obj, 274 Evas_Object *obj,
280 void *event_info __UNUSED__) 275 void *event_info)
281{ 276{
282 Evas_Object *grid = data; 277 Evas_Object *grid = data;
283 int size = elm_spinner_value_get(obj); 278 int size = elm_spinner_value_get(obj);
@@ -287,8 +282,8 @@ _size_changed(void *data,
287 282
288/* item double click callback */ 283/* item double click callback */
289static void 284static void
290_double_click(void *data __UNUSED__, 285_double_click(void *data,
291 Evas_Object *obj __UNUSED__, 286 Evas_Object *obj,
292 void *event_info) 287 void *event_info)
293{ 288{
294 fprintf(stdout, "Double click on item with handle %p\n", event_info); 289 fprintf(stdout, "Double click on item with handle %p\n", event_info);
@@ -296,8 +291,8 @@ _double_click(void *data __UNUSED__,
296 291
297/* item long press callback */ 292/* item long press callback */
298static void 293static void
299_long_pressed(void *data __UNUSED__, 294_long_pressed(void *data,
300 Evas_Object *obj __UNUSED__, 295 Evas_Object *obj,
301 void *event_info) 296 void *event_info)
302{ 297{
303 fprintf(stdout, "Long press on item with handle %p\n", event_info); 298 fprintf(stdout, "Long press on item with handle %p\n", event_info);
@@ -307,8 +302,8 @@ _long_pressed(void *data __UNUSED__,
307/* label fetching callback */ 302/* label fetching callback */
308static char * 303static char *
309_grid_label_get(void *data, 304_grid_label_get(void *data,
310 Evas_Object *obj __UNUSED__, 305 Evas_Object *obj,
311 const char *part __UNUSED__) 306 const char *part)
312{ 307{
313 const Example_Item *it = data; 308 const Example_Item *it = data;
314 char buf[256]; 309 char buf[256];
@@ -353,9 +348,9 @@ _grid_content_get(void *data,
353 348
354/* state fetching callback */ 349/* state fetching callback */
355static Eina_Bool 350static Eina_Bool
356_grid_state_get(void *data __UNUSED__, 351_grid_state_get(void *data,
357 Evas_Object *obj __UNUSED__, 352 Evas_Object *obj,
358 const char *part __UNUSED__) 353 const char *part)
359{ 354{
360 return EINA_FALSE; 355 return EINA_FALSE;
361} 356}
@@ -363,7 +358,7 @@ _grid_state_get(void *data __UNUSED__,
363/* deletion callback */ 358/* deletion callback */
364static void 359static void
365_grid_del(void *data, 360_grid_del(void *data,
366 Evas_Object *obj __UNUSED__) 361 Evas_Object *obj)
367{ 362{
368 Example_Item *it = data; 363 Example_Item *it = data;
369 364
@@ -373,9 +368,9 @@ _grid_del(void *data,
373 368
374/* scrolling animation stopped callback */ 369/* scrolling animation stopped callback */
375static void 370static void
376_grid_scroll_stopped_cb(void *data __UNUSED__, 371_grid_scroll_stopped_cb(void *data,
377 Evas_Object *obj, 372 Evas_Object *obj,
378 void *event_info __UNUSED__) 373 void *event_info)
379{ 374{
380 int h_pagenumber = 0, v_pagenumber = 0; 375 int h_pagenumber = 0, v_pagenumber = 0;
381 elm_gengrid_current_page_get(obj, &h_pagenumber, &v_pagenumber); 376 elm_gengrid_current_page_get(obj, &h_pagenumber, &v_pagenumber);
@@ -387,7 +382,7 @@ _grid_scroll_stopped_cb(void *data __UNUSED__,
387static void 382static void
388_h_align_change_cb(void *data, 383_h_align_change_cb(void *data,
389 Evas_Object *obj, 384 Evas_Object *obj,
390 void *event_info __UNUSED__) 385 void *event_info)
391{ 386{
392 double v_align; 387 double v_align;
393 double val = elm_slider_value_get(obj); 388 double val = elm_slider_value_get(obj);
@@ -401,7 +396,7 @@ _h_align_change_cb(void *data,
401static void 396static void
402_v_align_change_cb(void *data, 397_v_align_change_cb(void *data,
403 Evas_Object *obj, 398 Evas_Object *obj,
404 void *event_info __UNUSED__) 399 void *event_info)
405{ 400{
406 double h_align; 401 double h_align;
407 double val = elm_slider_value_get(obj); 402 double val = elm_slider_value_get(obj);
@@ -416,7 +411,7 @@ _v_align_change_cb(void *data,
416static void 411static void
417_page_change_cb(void *data, 412_page_change_cb(void *data,
418 Evas_Object *obj, 413 Evas_Object *obj,
419 void *event_info __UNUSED__) 414 void *event_info)
420{ 415{
421 double val = elm_slider_value_get(obj); 416 double val = elm_slider_value_get(obj);
422 417
@@ -426,8 +421,8 @@ _page_change_cb(void *data,
426} 421}
427 422
428EAPI_MAIN int 423EAPI_MAIN int
429elm_main(int argc __UNUSED__, 424elm_main(int argc,
430 char **argv __UNUSED__) 425 char **argv)
431{ 426{
432 Evas_Object *win, *bg, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl, 427 Evas_Object *win, *bg, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl,
433 *sp; 428 *sp;
diff --git a/legacy/elementary/src/examples/genlist_example_01.c b/legacy/elementary/src/examples/genlist_example_01.c
index 3ee6a8de3b..d28858d731 100644
--- a/legacy/elementary/src/examples/genlist_example_01.c
+++ b/legacy/elementary/src/examples/genlist_example_01.c
@@ -2,18 +2,13 @@
2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_01.c -o genlist_example_01 2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_01.c -o genlist_example_01
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11#define N_ITEMS 30 6#define N_ITEMS 30
12 7
13static Elm_Genlist_Item_Class *_itc = NULL; 8static Elm_Genlist_Item_Class *_itc = NULL;
14 9
15static char * 10static char *
16_item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) 11_item_label_get(void *data, Evas_Object *obj, const char *part)
17{ 12{
18 char buf[256]; 13 char buf[256];
19 snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data); 14 snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data);
@@ -21,7 +16,7 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUS
21} 16}
22 17
23static Evas_Object * 18static Evas_Object *
24_item_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part) 19_item_content_get(void *data, Evas_Object *obj, const char *part)
25{ 20{
26 Evas_Object *ic = elm_icon_add(obj); 21 Evas_Object *ic = elm_icon_add(obj);
27 22
@@ -40,7 +35,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
40} 35}
41 36
42EAPI_MAIN int 37EAPI_MAIN int
43elm_main(int argc __UNUSED__, char **argv __UNUSED__) 38elm_main(int argc, char **argv)
44{ 39{
45 Evas_Object *win, *bg; 40 Evas_Object *win, *bg;
46 Evas_Object *list; 41 Evas_Object *list;
diff --git a/legacy/elementary/src/examples/genlist_example_02.c b/legacy/elementary/src/examples/genlist_example_02.c
index 6323c6eb5d..019c236c83 100644
--- a/legacy/elementary/src/examples/genlist_example_02.c
+++ b/legacy/elementary/src/examples/genlist_example_02.c
@@ -1,20 +1,15 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_02.c -o genlist_example_02 2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_02.c -o genlist_example_02
3 3
4#include <time.h>
5#include <Elementary.h> 4#include <Elementary.h>
6#ifdef HAVE_CONFIG_H 5#include <time.h>
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
11 6
12#define N_ITEMS 300 7#define N_ITEMS 300
13 8
14static Elm_Genlist_Item_Class *_itc = NULL; 9static Elm_Genlist_Item_Class *_itc = NULL;
15 10
16static char * 11static char *
17_item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) 12_item_label_get(void *data, Evas_Object *obj, const char *part)
18{ 13{
19 time_t t = (time_t)ecore_time_unix_get(); 14 time_t t = (time_t)ecore_time_unix_get();
20 char buf[256]; 15 char buf[256];
@@ -32,7 +27,7 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUS
32} 27}
33 28
34static Evas_Object * 29static Evas_Object *
35_item_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part) 30_item_content_get(void *data, Evas_Object *obj, const char *part)
36{ 31{
37 Evas_Object *ic = elm_icon_add(obj); 32 Evas_Object *ic = elm_icon_add(obj);
38 33
@@ -51,7 +46,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
51} 46}
52 47
53static void 48static void
54_show_status_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 49_show_status_cb(void *data, Evas_Object *o, void *event_info)
55{ 50{
56 Evas_Object *list = data; 51 Evas_Object *list = data;
57 Evas_Coord x, y, w, h, mx, my; 52 Evas_Coord x, y, w, h, mx, my;
@@ -82,14 +77,14 @@ _show_status_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED
82} 77}
83 78
84static void 79static void
85_realize_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 80_realize_cb(void *data, Evas_Object *o, void *event_info)
86{ 81{
87 Evas_Object *list = data; 82 Evas_Object *list = data;
88 elm_genlist_realized_items_update(list); 83 elm_genlist_realized_items_update(list);
89} 84}
90 85
91EAPI_MAIN int 86EAPI_MAIN int
92elm_main(int argc __UNUSED__, char **argv __UNUSED__) 87elm_main(int argc, char **argv)
93{ 88{
94 Evas_Object *win, *bg, *box, *hbox; 89 Evas_Object *win, *bg, *box, *hbox;
95 Evas_Object *list, *btn; 90 Evas_Object *list, *btn;
diff --git a/legacy/elementary/src/examples/genlist_example_03.c b/legacy/elementary/src/examples/genlist_example_03.c
index 755c90016d..4b2a28a1fb 100644
--- a/legacy/elementary/src/examples/genlist_example_03.c
+++ b/legacy/elementary/src/examples/genlist_example_03.c
@@ -2,18 +2,13 @@
2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_03.c -o genlist_example_03 2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_03.c -o genlist_example_03
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11#define N_ITEMS 30 6#define N_ITEMS 30
12 7
13static Elm_Genlist_Item_Class *_itc = NULL; 8static Elm_Genlist_Item_Class *_itc = NULL;
14 9
15static char * 10static char *
16_item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) 11_item_label_get(void *data, Evas_Object *obj, const char *part)
17{ 12{
18 time_t t = (time_t)ecore_time_unix_get(); 13 time_t t = (time_t)ecore_time_unix_get();
19 char buf[256]; 14 char buf[256];
@@ -33,7 +28,7 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
33} 28}
34 29
35static Evas_Object * 30static Evas_Object *
36_item_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part) 31_item_content_get(void *data, Evas_Object *obj, const char *part)
37{ 32{
38 Evas_Object *ic = elm_icon_add(obj); 33 Evas_Object *ic = elm_icon_add(obj);
39 34
@@ -79,7 +74,7 @@ _genlist_fill(Evas_Object *list)
79} 74}
80 75
81EAPI_MAIN int 76EAPI_MAIN int
82elm_main(int argc __UNUSED__, char **argv __UNUSED__) 77elm_main(int argc, char **argv)
83{ 78{
84 Evas_Object *win, *bg, *box; 79 Evas_Object *win, *bg, *box;
85 Evas_Object *list; 80 Evas_Object *list;
diff --git a/legacy/elementary/src/examples/genlist_example_04.c b/legacy/elementary/src/examples/genlist_example_04.c
index 785e7f43c5..c9b5d1a16c 100644
--- a/legacy/elementary/src/examples/genlist_example_04.c
+++ b/legacy/elementary/src/examples/genlist_example_04.c
@@ -2,11 +2,6 @@
2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_04.c -o genlist_example_04 2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_04.c -o genlist_example_04
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11#define N_ITEMS 300 6#define N_ITEMS 300
12 7
@@ -15,7 +10,7 @@ static Elm_Genlist_Item_Class *_itc_group = NULL;
15static int nitems = 0; 10static int nitems = 0;
16 11
17static char * 12static char *
18_item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) 13_item_label_get(void *data, Evas_Object *obj, const char *part)
19{ 14{
20 time_t t = (time_t)ecore_time_unix_get(); 15 time_t t = (time_t)ecore_time_unix_get();
21 char buf[256]; 16 char buf[256];
@@ -35,7 +30,7 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
35} 30}
36 31
37static Evas_Object * 32static Evas_Object *
38_item_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part) 33_item_content_get(void *data, Evas_Object *obj, const char *part)
39{ 34{
40 Evas_Object *ic = elm_icon_add(obj); 35 Evas_Object *ic = elm_icon_add(obj);
41 36
@@ -54,7 +49,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
54} 49}
55 50
56static char * 51static char *
57_group_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) 52_group_label_get(void *data, Evas_Object *obj, const char *part)
58{ 53{
59 char buf[256]; 54 char buf[256];
60 int i = (int)(long)data; 55 int i = (int)(long)data;
@@ -65,7 +60,7 @@ _group_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNU
65} 60}
66 61
67static Evas_Object * 62static Evas_Object *
68_group_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part __UNUSED__) 63_group_content_get(void *data, Evas_Object *obj, const char *part)
69{ 64{
70 Evas_Object *ic = elm_icon_add(obj); 65 Evas_Object *ic = elm_icon_add(obj);
71 66
@@ -77,7 +72,7 @@ _group_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part __U
77} 72}
78 73
79static void 74static void
80_append_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 75_append_cb(void *data, Evas_Object *o, void *event_info)
81{ 76{
82 Evas_Object *list = data; 77 Evas_Object *list = data;
83 78
@@ -89,7 +84,7 @@ _append_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
89} 84}
90 85
91static void 86static void
92_prepend_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 87_prepend_cb(void *data, Evas_Object *o, void *event_info)
93{ 88{
94 Evas_Object *list = data; 89 Evas_Object *list = data;
95 90
@@ -101,7 +96,7 @@ _prepend_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
101} 96}
102 97
103static void 98static void
104_insert_before_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 99_insert_before_cb(void *data, Evas_Object *o, void *event_info)
105{ 100{
106 Evas_Object *list = data; 101 Evas_Object *list = data;
107 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 102 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -116,7 +111,7 @@ _insert_before_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUS
116} 111}
117 112
118static void 113static void
119_insert_after_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 114_insert_after_cb(void *data, Evas_Object *o, void *event_info)
120{ 115{
121 Evas_Object *list = data; 116 Evas_Object *list = data;
122 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 117 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -131,7 +126,7 @@ _insert_after_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSE
131} 126}
132 127
133static void 128static void
134_next_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 129_next_cb(void *data, Evas_Object *o, void *event_info)
135{ 130{
136 Evas_Object *list = data; 131 Evas_Object *list = data;
137 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 132 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -144,7 +139,7 @@ _next_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
144} 139}
145 140
146static void 141static void
147_prev_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 142_prev_cb(void *data, Evas_Object *o, void *event_info)
148{ 143{
149 Evas_Object *list = data; 144 Evas_Object *list = data;
150 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 145 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -157,7 +152,7 @@ _prev_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
157} 152}
158 153
159static void 154static void
160_bring_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 155_bring_in_cb(void *data, Evas_Object *o, void *event_info)
161{ 156{
162 Elm_Object_Item *glit = data; 157 Elm_Object_Item *glit = data;
163 if (!glit) return; 158 if (!glit) return;
@@ -166,7 +161,7 @@ _bring_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
166} 161}
167 162
168static void 163static void
169_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 164_show_cb(void *data, Evas_Object *o, void *event_info)
170{ 165{
171 Elm_Object_Item *glit = data; 166 Elm_Object_Item *glit = data;
172 if (!glit) return; 167 if (!glit) return;
@@ -175,7 +170,7 @@ _show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
175} 170}
176 171
177static void 172static void
178_middle_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 173_middle_in_cb(void *data, Evas_Object *o, void *event_info)
179{ 174{
180 Elm_Object_Item *glit = data; 175 Elm_Object_Item *glit = data;
181 if (!glit) return; 176 if (!glit) return;
@@ -184,7 +179,7 @@ _middle_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__
184} 179}
185 180
186static void 181static void
187_middle_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 182_middle_show_cb(void *data, Evas_Object *o, void *event_info)
188{ 183{
189 Elm_Object_Item *glit = data; 184 Elm_Object_Item *glit = data;
190 if (!glit) return; 185 if (!glit) return;
@@ -193,7 +188,7 @@ _middle_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED
193} 188}
194 189
195static void 190static void
196_top_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 191_top_in_cb(void *data, Evas_Object *o, void *event_info)
197{ 192{
198 Elm_Object_Item *glit = data; 193 Elm_Object_Item *glit = data;
199 if (!glit) return; 194 if (!glit) return;
@@ -202,7 +197,7 @@ _top_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
202} 197}
203 198
204static void 199static void
205_top_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 200_top_show_cb(void *data, Evas_Object *o, void *event_info)
206{ 201{
207 Elm_Object_Item *glit = data; 202 Elm_Object_Item *glit = data;
208 if (!glit) return; 203 if (!glit) return;
@@ -211,7 +206,7 @@ _top_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
211} 206}
212 207
213static void 208static void
214_realize_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 209_realize_cb(void *data, Evas_Object *o, void *event_info)
215{ 210{
216 Evas_Object *list = data; 211 Evas_Object *list = data;
217 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 212 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -237,7 +232,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
237} 232}
238 233
239EAPI_MAIN int 234EAPI_MAIN int
240elm_main(int argc __UNUSED__, char **argv __UNUSED__) 235elm_main(int argc, char **argv)
241{ 236{
242 Evas_Object *win, *bg, *box, *fbox; 237 Evas_Object *win, *bg, *box, *fbox;
243 Evas_Object *list; 238 Evas_Object *list;
diff --git a/legacy/elementary/src/examples/genlist_example_05.c b/legacy/elementary/src/examples/genlist_example_05.c
index 850c1c1c1e..58dcf62796 100644
--- a/legacy/elementary/src/examples/genlist_example_05.c
+++ b/legacy/elementary/src/examples/genlist_example_05.c
@@ -2,11 +2,6 @@
2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_05.c -o genlist_example_05 2//gcc -g `pkg-config --cflags --libs elementary` genlist_example_05.c -o genlist_example_05
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11#define N_ITEMS 6 6#define N_ITEMS 6
12 7
@@ -23,7 +18,7 @@ static Elm_Genlist_Item_Class *_itfav = NULL;
23static int nitems = 0; 18static int nitems = 0;
24 19
25static char * 20static char *
26_item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) 21_item_label_get(void *data, Evas_Object *obj, const char *part)
27{ 22{
28 char buf[256]; 23 char buf[256];
29 Node_Data *d = data; 24 Node_Data *d = data;
@@ -35,7 +30,7 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
35} 30}
36 31
37static Evas_Object * 32static Evas_Object *
38_item_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part) 33_item_content_get(void *data, Evas_Object *obj, const char *part)
39{ 34{
40 Evas_Object *ic = elm_icon_add(obj); 35 Evas_Object *ic = elm_icon_add(obj);
41 36
@@ -54,7 +49,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
54} 49}
55 50
56static char * 51static char *
57_parent_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) 52_parent_label_get(void *data, Evas_Object *obj, const char *part)
58{ 53{
59 char buf[256]; 54 char buf[256];
60 Node_Data *d = data; 55 Node_Data *d = data;
@@ -66,7 +61,7 @@ _parent_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UN
66} 61}
67 62
68static Evas_Object * 63static Evas_Object *
69_parent_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part __UNUSED__) 64_parent_content_get(void *data, Evas_Object *obj, const char *part)
70{ 65{
71 Evas_Object *ic = elm_icon_add(obj); 66 Evas_Object *ic = elm_icon_add(obj);
72 67
@@ -78,7 +73,7 @@ _parent_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part __
78} 73}
79 74
80static char * 75static char *
81_favorite_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) 76_favorite_label_get(void *data, Evas_Object *obj, const char *part)
82{ 77{
83 char buf[256]; 78 char buf[256];
84 Node_Data *d = data; 79 Node_Data *d = data;
@@ -90,7 +85,7 @@ _favorite_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
90} 85}
91 86
92static Evas_Object * 87static Evas_Object *
93_favorite_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part) 88_favorite_content_get(void *data, Evas_Object *obj, const char *part)
94{ 89{
95 Evas_Object *ic = elm_icon_add(obj); 90 Evas_Object *ic = elm_icon_add(obj);
96 91
@@ -102,7 +97,7 @@ _favorite_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part)
102} 97}
103 98
104static void 99static void
105_append_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 100_append_cb(void *data, Evas_Object *o, void *event_info)
106{ 101{
107 Evas_Object *list = data; 102 Evas_Object *list = data;
108 Elm_Object_Item *glit, *parent = NULL; 103 Elm_Object_Item *glit, *parent = NULL;
@@ -132,7 +127,7 @@ _append_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
132} 127}
133 128
134static void 129static void
135_favorite_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 130_favorite_cb(void *data, Evas_Object *o, void *event_info)
136{ 131{
137 Evas_Object *list = data; 132 Evas_Object *list = data;
138 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 133 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -155,7 +150,7 @@ _favorite_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
155} 150}
156 151
157static void 152static void
158_add_child_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 153_add_child_cb(void *data, Evas_Object *o, void *event_info)
159{ 154{
160 Evas_Object *list = data; 155 Evas_Object *list = data;
161 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 156 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -215,7 +210,7 @@ _clear_list(Node_Data *d)
215} 210}
216 211
217static void 212static void
218_del_item_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) 213_del_item_cb(void *data, Evas_Object *o, void *event_info)
219{ 214{
220 Evas_Object *list = data; 215 Evas_Object *list = data;
221 Elm_Object_Item *glit = elm_genlist_selected_item_get(list); 216 Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
@@ -238,7 +233,7 @@ _del_item_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
238} 233}
239 234
240static void 235static void
241_expand_request_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) 236_expand_request_cb(void *data, Evas_Object *o, void *event_info)
242{ 237{
243 Elm_Object_Item *glit = event_info; 238 Elm_Object_Item *glit = event_info;
244 printf("expand request on item: %p\n", event_info); 239 printf("expand request on item: %p\n", event_info);
@@ -246,7 +241,7 @@ _expand_request_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event
246} 241}
247 242
248static void 243static void
249_contract_request_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) 244_contract_request_cb(void *data, Evas_Object *o, void *event_info)
250{ 245{
251 Elm_Object_Item *glit = event_info; 246 Elm_Object_Item *glit = event_info;
252 printf("contract request on item: %p\n", event_info); 247 printf("contract request on item: %p\n", event_info);
@@ -254,7 +249,7 @@ _contract_request_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *eve
254} 249}
255 250
256static void 251static void
257_expanded_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) 252_expanded_cb(void *data, Evas_Object *o, void *event_info)
258{ 253{
259 Eina_List *l; 254 Eina_List *l;
260 Elm_Object_Item *glit = event_info; 255 Elm_Object_Item *glit = event_info;
@@ -285,7 +280,7 @@ _expanded_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
285} 280}
286 281
287static void 282static void
288_contracted_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) 283_contracted_cb(void *data, Evas_Object *o, void *event_info)
289{ 284{
290 Elm_Object_Item *glit = event_info; 285 Elm_Object_Item *glit = event_info;
291 elm_genlist_item_subitems_clear(glit); 286 elm_genlist_item_subitems_clear(glit);
@@ -308,7 +303,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
308} 303}
309 304
310EAPI_MAIN int 305EAPI_MAIN int
311elm_main(int argc __UNUSED__, char **argv __UNUSED__) 306elm_main(int argc, char **argv)
312{ 307{
313 Evas_Object *win, *bg, *box, *fbox; 308 Evas_Object *win, *bg, *box, *fbox;
314 Evas_Object *list; 309 Evas_Object *list;
diff --git a/legacy/elementary/src/examples/glview_example_01.c b/legacy/elementary/src/examples/glview_example_01.c
index e19639354e..9fccdd8e66 100644
--- a/legacy/elementary/src/examples/glview_example_01.c
+++ b/legacy/elementary/src/examples/glview_example_01.c
@@ -11,11 +11,6 @@
11#include <Elementary.h> 11#include <Elementary.h>
12#include <Evas_GL.h> 12#include <Evas_GL.h>
13#include <stdio.h> 13#include <stdio.h>
14#ifdef HAVE_CONFIG_H
15# include "elementary_config.h"
16#else
17# define __UNUSED__
18#endif
19 14
20typedef struct _GLData GLData; 15typedef struct _GLData GLData;
21 16
diff --git a/legacy/elementary/src/examples/hover_example_01.c b/legacy/elementary/src/examples/hover_example_01.c
index 536ecd02f4..e426200b3e 100644
--- a/legacy/elementary/src/examples/hover_example_01.c
+++ b/legacy/elementary/src/examples/hover_example_01.c
@@ -2,26 +2,21 @@
2//gcc -o hover_example_01 hover_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o hover_example_01 hover_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void 6static void
12_show_hover(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 7_show_hover(void *data, Evas_Object *obj, void *event_info)
13{ 8{
14 evas_object_show(data); 9 evas_object_show(data);
15} 10}
16 11
17static void 12static void
18_hide_hover(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 13_hide_hover(void *data, Evas_Object *obj, void *event_info)
19{ 14{
20 evas_object_hide(data); 15 evas_object_hide(data);
21} 16}
22 17
23EAPI_MAIN int 18EAPI_MAIN int
24elm_main(int argc __UNUSED__, char **argv __UNUSED__) 19elm_main(int argc, char **argv)
25{ 20{
26 Evas_Object *win, *bg, *bt, *bt2, *rect, *rect2, *rect3, *hover; 21 Evas_Object *win, *bg, *bt, *bt2, *rect, *rect2, *rect3, *hover;
27 22
diff --git a/legacy/elementary/src/examples/hoversel_example_01.c b/legacy/elementary/src/examples/hoversel_example_01.c
index 14614ce12b..540e79d785 100644
--- a/legacy/elementary/src/examples/hoversel_example_01.c
+++ b/legacy/elementary/src/examples/hoversel_example_01.c
@@ -2,11 +2,6 @@
2//gcc -o hoversel_example_01 hoversel_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o hoversel_example_01 hoversel_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
10 5
11static void _print_items(void *data, Evas_Object *obj, void *event_info); 6static void _print_items(void *data, Evas_Object *obj, void *event_info);
12static void _rm_items(void *data, Evas_Object *obj, void *event_info); 7static void _rm_items(void *data, Evas_Object *obj, void *event_info);
@@ -15,7 +10,7 @@ static void _free(void *data, Evas_Object *obj, void *event_info);
15static void _add_item(void *data, Evas_Object *obj, void *event_info); 10static void _add_item(void *data, Evas_Object *obj, void *event_info);
16 11
17EAPI_MAIN int 12EAPI_MAIN int
18elm_main(int argc __UNUSED__, char **argv __UNUSED__) 13elm_main(int argc, char **argv)
19{ 14{
20 Evas_Object *win, *bg, *rect, *hoversel; 15 Evas_Object *win, *bg, *rect, *hoversel;
21 Elm_Object_Item *hoversel_it; 16 Elm_Object_Item *hoversel_it;
@@ -63,7 +58,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
63ELM_MAIN() 58ELM_MAIN()
64 59
65static void 60static void
66_print_items(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 61_print_items(void *data, Evas_Object *obj, void *event_info)
67{ 62{
68 const Eina_List *items = elm_hoversel_items_get(obj); 63 const Eina_List *items = elm_hoversel_items_get(obj);
69 const Eina_List *l; 64 const Eina_List *l;
@@ -74,7 +69,7 @@ _print_items(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED_
74} 69}
75 70
76static void 71static void
77_rm_items(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 72_rm_items(void *data, Evas_Object *obj, void *event_info)
78{ 73{
79 if(!elm_hoversel_expanded_get(obj)) 74 if(!elm_hoversel_expanded_get(obj))
80 elm_hoversel_clear(obj); 75 elm_hoversel_clear(obj);
@@ -88,7 +83,7 @@ _sel(void *data, Evas_Object *obj, void *event_info)
88} 83}
89 84
90static void 85static void
91_add_item(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 86_add_item(void *data, Evas_Object *obj, void *event_info)
92{ 87{
93 static int num = 0; 88 static int num = 0;
94 char *str = malloc(sizeof(char) * 10); 89 char *str = malloc(sizeof(char) * 10);
@@ -102,7 +97,7 @@ _add_item(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
102} 97}
103 98
104static void 99static void
105_free(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 100_free(void *data, Evas_Object *obj, void *event_info)
106{ 101{
107 free(data); 102 free(data);
108} 103}
diff --git a/legacy/elementary/src/examples/icon_example_01.c b/legacy/elementary/src/examples/icon_example_01.c
index 5566ebe6d8..13902f1725 100644
--- a/legacy/elementary/src/examples/icon_example_01.c
+++ b/legacy/elementary/src/examples/icon_example_01.c
@@ -2,15 +2,10 @@
2//gcc -g `pkg-config --cflags --libs elementary` image_example_01.c -o image_example_01 2//gcc -g `pkg-config --cflags --libs elementary` image_example_01.c -o image_example_01
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#define PACKAGE_DATA_DIR "."
6# include "elementary_config.h"
7#else
8# define __UNUSED__