summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 00:51:49 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 00:51:49 +0000
commita21205642be6cc5a989caa4b3f773550320502eb (patch)
tree075502659299db33aaedf2f4ff71f0e1fbde9ee6 /legacy/elementary
parent91645dc5027ad1b00fdcbc884009e43cac568f7d (diff)
elm examples: Fixed build warnings.
SVN revision: 69676
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/examples/bubble_example_01.c4
-rw-r--r--legacy/elementary/src/examples/colorselector_example_01.c8
-rw-r--r--legacy/elementary/src/examples/ctxpopup_example_01.c4
-rw-r--r--legacy/elementary/src/examples/flip_example_01.c4
-rw-r--r--legacy/elementary/src/examples/frame_example_01.c5
-rw-r--r--legacy/elementary/src/examples/genlist_example_02.c2
6 files changed, 13 insertions, 14 deletions
diff --git a/legacy/elementary/src/examples/bubble_example_01.c b/legacy/elementary/src/examples/bubble_example_01.c
index 0d3e546b63..3061b6c77a 100644
--- a/legacy/elementary/src/examples/bubble_example_01.c
+++ b/legacy/elementary/src/examples/bubble_example_01.c
@@ -6,10 +6,6 @@
6# include "elementary_config.h" 6# include "elementary_config.h"
7#endif 7#endif
8 8
9static const char *corners[] = {"top_left", "top_right",
10 "bottom_right", "bottom_left"};
11
12
13void 9void
14_bla(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 10_bla(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
15{ 11{
diff --git a/legacy/elementary/src/examples/colorselector_example_01.c b/legacy/elementary/src/examples/colorselector_example_01.c
index 6a7fe8ef61..1b97dc772c 100644
--- a/legacy/elementary/src/examples/colorselector_example_01.c
+++ b/legacy/elementary/src/examples/colorselector_example_01.c
@@ -11,7 +11,7 @@ static void _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_i
11static void _colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info); 11static void _colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info);
12 12
13EAPI_MAIN int 13EAPI_MAIN int
14elm_main(int argc, char **argv) 14elm_main(int argc __UNUSED__, char **argv __UNUSED__)
15{ 15{
16 Evas_Object *win, *bg, *cs, *rect, *bx, *fr; 16 Evas_Object *win, *bg, *cs, *rect, *bx, *fr;
17 17
@@ -71,7 +71,7 @@ elm_main(int argc, char **argv)
71ELM_MAIN() 71ELM_MAIN()
72 72
73static void 73static void
74_change_color(void *data, Evas_Object *obj, void *event_info) 74_change_color(void *data, Evas_Object *obj, void *event_info __UNUSED__)
75{ 75{
76 int r, g, b, a; 76 int r, g, b, a;
77 elm_colorselector_color_get(obj, &r, &g, &b, &a); 77 elm_colorselector_color_get(obj, &r, &g, &b, &a);
@@ -79,7 +79,7 @@ _change_color(void *data, Evas_Object *obj, void *event_info)
79} 79}
80 80
81static void 81static void
82_colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info) 82_colorpalette_clicked_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info)
83{ 83{
84 int r = 0, g = 0, b = 0 ,a = 0; 84 int r = 0, g = 0, b = 0 ,a = 0;
85 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info; 85 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info;
@@ -88,7 +88,7 @@ _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info)
88} 88}
89 89
90static void 90static void
91_colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info) 91_colorpalette_longpressed_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
92{ 92{
93 int r = 0,g = 0,b = 0 ,a = 0; 93 int r = 0,g = 0,b = 0 ,a = 0;
94 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info; 94 Elm_Object_Item *color_it = (Elm_Object_Item *) event_info;
diff --git a/legacy/elementary/src/examples/ctxpopup_example_01.c b/legacy/elementary/src/examples/ctxpopup_example_01.c
index 2930d9b8d1..ed84b5cdb8 100644
--- a/legacy/elementary/src/examples/ctxpopup_example_01.c
+++ b/legacy/elementary/src/examples/ctxpopup_example_01.c
@@ -75,7 +75,7 @@ _list_item_cb2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
75} 75}
76 76
77EAPI_MAIN int 77EAPI_MAIN int
78elm_main(int argc, char **argv) 78elm_main(int argc __UNUSED__, char **argv __UNUSED__)
79{ 79{
80 Evas_Object *win, *bg, *list; 80 Evas_Object *win, *bg, *list;
81 81
@@ -104,5 +104,7 @@ elm_main(int argc, char **argv)
104 elm_list_go(list); 104 elm_list_go(list);
105 105
106 elm_run(); 106 elm_run();
107
108 return 0;
107} 109}
108ELM_MAIN() 110ELM_MAIN()
diff --git a/legacy/elementary/src/examples/flip_example_01.c b/legacy/elementary/src/examples/flip_example_01.c
index a44504c447..dcce7146bb 100644
--- a/legacy/elementary/src/examples/flip_example_01.c
+++ b/legacy/elementary/src/examples/flip_example_01.c
@@ -9,7 +9,7 @@
9static void _change_interaction(void *data, Evas_Object *obj, void *event_info); 9static void _change_interaction(void *data, Evas_Object *obj, void *event_info);
10 10
11EAPI_MAIN int 11EAPI_MAIN int
12elm_main(int argc, char **argv) 12elm_main(int argc __UNUSED__, char **argv __UNUSED__)
13{ 13{
14 Evas_Object *win, *bg, *rect, *rect2, *flip, *radio, *radio2, *radio3; 14 Evas_Object *win, *bg, *rect, *rect2, *flip, *radio, *radio2, *radio3;
15 15
@@ -86,7 +86,7 @@ elm_main(int argc, char **argv)
86ELM_MAIN() 86ELM_MAIN()
87 87
88static void 88static void
89_change_interaction(void *data, Evas_Object *obj, void *event_info) 89_change_interaction(void *data, Evas_Object *obj, void *event_info __UNUSED__)
90{ 90{
91 elm_flip_interaction_set(data, elm_radio_state_value_get(obj)); 91 elm_flip_interaction_set(data, elm_radio_state_value_get(obj));
92 elm_flip_go(data, ELM_FLIP_ROTATE_XZ_CENTER_AXIS); 92 elm_flip_go(data, ELM_FLIP_ROTATE_XZ_CENTER_AXIS);
diff --git a/legacy/elementary/src/examples/frame_example_01.c b/legacy/elementary/src/examples/frame_example_01.c
index c58f858b1a..dc0b6cae61 100644
--- a/legacy/elementary/src/examples/frame_example_01.c
+++ b/legacy/elementary/src/examples/frame_example_01.c
@@ -4,14 +4,15 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9EAPI_MAIN int 11EAPI_MAIN int
10elm_main(int argc, char **argv) 12elm_main(int argc __UNUSED__, char **argv __UNUSED__)
11{ 13{
12 Evas_Object *win, *bg; 14 Evas_Object *win, *bg;
13 Evas_Object *f1, *r1, *f2, *r2, *f3, *r3, *f4, *r4; 15 Evas_Object *f1, *r1, *f2, *r2, *f3, *r3, *f4, *r4;
14 char buf[256];
15 16
16 win = elm_win_add(NULL, "frame", ELM_WIN_BASIC); 17 win = elm_win_add(NULL, "frame", ELM_WIN_BASIC);
17 elm_win_title_set(win, "Frame"); 18 elm_win_title_set(win, "Frame");
diff --git a/legacy/elementary/src/examples/genlist_example_02.c b/legacy/elementary/src/examples/genlist_example_02.c
index 3e785e9fab..6f72cc1a97 100644
--- a/legacy/elementary/src/examples/genlist_example_02.c
+++ b/legacy/elementary/src/examples/genlist_example_02.c
@@ -71,7 +71,7 @@ _show_status_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED
71 EINA_LIST_FOREACH(realized, l, glit) 71 EINA_LIST_FOREACH(realized, l, glit)
72 printf("%p ", glit); 72 printf("%p ", glit);
73 printf("\n"); 73 printf("\n");
74 printf("genlist mode: %s\n", elm_genlist_decorate_mode_get(list)); 74 printf("genlist mode: %d\n", elm_genlist_decorate_mode_get(list));
75 printf("mode item: %p\n", elm_genlist_decorated_item_get(list)); 75 printf("mode item: %p\n", elm_genlist_decorated_item_get(list));
76 76
77 evas_object_geometry_get(list, &x, &y, &w, &h); 77 evas_object_geometry_get(list, &x, &y, &w, &h);