summaryrefslogtreecommitdiff
path: root/src/examples/elementary/slideshow_example.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 15:33:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-04-20 17:44:57 +0900
commitbcf3ce84289ad4c91e89d6f5c3c9167af60036f3 (patch)
treed22ab98afccd2f5570aec74fd7957547c2011025 /src/examples/elementary/slideshow_example.c
parenta71b770bbc848bff2231bac1e75bf2a85885aca5 (diff)
examples: Fix most trivial warnings
This fixes all warnings for "make examples" for: -Wunused-parameter -Wshadow -Wformat-security -Wenum-conversion Some remaining warnings include: -Wdeprecated-delcarations
Diffstat (limited to 'src/examples/elementary/slideshow_example.c')
-rw-r--r--src/examples/elementary/slideshow_example.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/examples/elementary/slideshow_example.c b/src/examples/elementary/slideshow_example.c
index 5687b9e79a..6f516746a7 100644
--- a/src/examples/elementary/slideshow_example.c
+++ b/src/examples/elementary/slideshow_example.c
@@ -17,59 +17,59 @@ static Evas_Object *slideshow, *bt_start, *bt_stop;
17static Elm_Slideshow_Item_Class itc; 17static Elm_Slideshow_Item_Class itc;
18 18
19static void 19static void
20_notify_show(void *data, Evas *e, Evas_Object *obj, void *event_info) 20_notify_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
21{ 21{
22 evas_object_show(data); 22 evas_object_show(data);
23} 23}
24 24
25/* jump to next item, cyclically */ 25/* jump to next item, cyclically */
26static void 26static void
27_next(void *data, Evas_Object *obj, void *event_info) 27_next(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
28{ 28{
29 elm_slideshow_next(data); 29 elm_slideshow_next(data);
30} 30}
31 31
32static void 32static void
33_previous(void *data, Evas_Object *obj, void *event_info) 33_previous(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
34{ 34{
35 elm_slideshow_previous(data); 35 elm_slideshow_previous(data);
36} 36}
37 37
38static void 38static void
39_first(void *data, Evas_Object *obj, void *event_info) 39_first(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
40{ 40{
41 elm_slideshow_item_show(data); 41 elm_slideshow_item_show(data);
42} 42}
43 43
44static void 44static void
45_last(void *data, Evas_Object *obj, void *event_info) 45_last(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
46{ 46{
47 elm_slideshow_item_show(data); 47 elm_slideshow_item_show(data);
48} 48}
49 49
50static void 50static void
51_mouse_in_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) 51_mouse_in_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
52{ 52{
53 elm_notify_timeout_set(data, 0.0); 53 elm_notify_timeout_set(data, 0.0);
54 evas_object_show(data); 54 evas_object_show(data);
55} 55}
56 56
57static void 57static void
58_mouse_out_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) 58_mouse_out_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
59{ 59{
60 elm_notify_timeout_set(data, 3.0); 60 elm_notify_timeout_set(data, 3.0);
61} 61}
62 62
63/* transition changed */ 63/* transition changed */
64static void 64static void
65_transition_select(void *data, Evas_Object *obj, void *event_info) 65_transition_select(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
66{ 66{
67 elm_slideshow_transition_set(slideshow, data); 67 elm_slideshow_transition_set(slideshow, data);
68 elm_object_text_set(obj, data); 68 elm_object_text_set(obj, data);
69} 69}
70 70
71static void 71static void
72_layout_select(void *data, Evas_Object *obj, void *event_info) 72_layout_select(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
73{ 73{
74 elm_slideshow_layout_set(slideshow, data); 74 elm_slideshow_layout_set(slideshow, data);
75 elm_object_text_set(obj, data); 75 elm_object_text_set(obj, data);
@@ -77,7 +77,7 @@ _layout_select(void *data, Evas_Object *obj, void *event_info)
77 77
78/* start the show! */ 78/* start the show! */
79static void 79static void
80_start(void *data, Evas_Object *obj, void *event_info) 80_start(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
81{ 81{
82 elm_slideshow_timeout_set(slideshow, elm_spinner_value_get(data)); 82 elm_slideshow_timeout_set(slideshow, elm_spinner_value_get(data));
83 83
@@ -86,7 +86,7 @@ _start(void *data, Evas_Object *obj, void *event_info)
86} 86}
87 87
88static void 88static void
89_stop(void *data, Evas_Object *obj, void *event_info) 89_stop(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
90{ 90{
91 elm_slideshow_timeout_set(slideshow, 0.0); 91 elm_slideshow_timeout_set(slideshow, 0.0);
92 elm_object_disabled_set(bt_start, EINA_FALSE); 92 elm_object_disabled_set(bt_start, EINA_FALSE);
@@ -95,7 +95,7 @@ _stop(void *data, Evas_Object *obj, void *event_info)
95 95
96/* slideshow transition time has changed */ 96/* slideshow transition time has changed */
97static void 97static void
98_spin(void *data, Evas_Object *obj, void *event_info) 98_spin(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
99{ 99{
100 if (elm_slideshow_timeout_get(slideshow) > 0) 100 if (elm_slideshow_timeout_get(slideshow) > 0)
101 elm_slideshow_timeout_set(slideshow, elm_spinner_value_get(data)); 101 elm_slideshow_timeout_set(slideshow, elm_spinner_value_get(data));
@@ -129,7 +129,7 @@ _cmp_func(const void *data1, const void *data2)
129} 129}
130 130
131EAPI_MAIN int 131EAPI_MAIN int
132elm_main(int argc, char **argv) 132elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
133{ 133{
134 Evas_Object *win, *notify, *bx, *bt, *hv, *spin; 134 Evas_Object *win, *notify, *bx, *bt, *hv, *spin;
135 Elm_Object_Item *slide_first = NULL, *slide_last = NULL, *slide_it = NULL; 135 Elm_Object_Item *slide_first = NULL, *slide_last = NULL, *slide_it = NULL;