summaryrefslogtreecommitdiff
path: root/src/examples/theme_example_01.c
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
commitf84b3cda618180232412b72ad849a5d23b80dbcd (patch)
treeaeab1f71b33113d0a58cfb2f723f2699445e9408 /src/examples/theme_example_01.c
parentd420f31b9c07d7529117519eda05471a95ea455f (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 'src/examples/theme_example_01.c')
-rw-r--r--src/examples/theme_example_01.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/examples/theme_example_01.c b/src/examples/theme_example_01.c
index 1c1b5b4..e848297 100644
--- a/src/examples/theme_example_01.c
+++ b/src/examples/theme_example_01.c
@@ -2,14 +2,9 @@
2 * gcc -o theme_example_01 theme_example_01.c `pkg-config --cflags --libs elementary` 2 * gcc -o theme_example_01 theme_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 6static void
12btn_extension_click_cb(void *data __UNUSED__, Evas_Object *btn, void *ev __UNUSED__) 7btn_extension_click_cb(void *data, Evas_Object *btn, void *ev)
13{ 8{
14 const char *lbl = elm_object_text_get(btn); 9 const char *lbl = elm_object_text_get(btn);
15 10
@@ -26,7 +21,7 @@ btn_extension_click_cb(void *data __UNUSED__, Evas_Object *btn, void *ev __UNUSE
26} 21}
27 22
28static void 23static void
29btn_style_click_cb(void *data __UNUSED__, Evas_Object *btn, void *ev __UNUSED__) 24btn_style_click_cb(void *data, Evas_Object *btn, void *ev)
30{ 25{
31 const char *styles[] = { 26 const char *styles[] = {
32 "chucknorris", 27 "chucknorris",
@@ -40,7 +35,7 @@ btn_style_click_cb(void *data __UNUSED__, Evas_Object *btn, void *ev __UNUSED__)
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, *box, *btn; 40 Evas_Object *win, *bg, *box, *btn;
46 41