summaryrefslogtreecommitdiff
path: root/src/examples/notify_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/notify_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/notify_example_01.c')
-rw-r--r--src/examples/notify_example_01.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/examples/notify_example_01.c b/src/examples/notify_example_01.c
index 87ab6ed..28456f8 100644
--- a/src/examples/notify_example_01.c
+++ b/src/examples/notify_example_01.c
@@ -2,16 +2,11 @@
2//gcc -o notify_example_01 notify_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o notify_example_01 notify_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 _hide(void *data, Evas_Object *obj, void *event_info); 6static void _hide(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, *bx, *notify, *content; 11 Evas_Object *win, *bg, *bx, *notify, *content;
17 12
@@ -78,7 +73,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
78ELM_MAIN() 73ELM_MAIN()
79 74
80static void 75static void
81_hide(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 76_hide(void *data, Evas_Object *obj, void *event_info)
82{ 77{
83 evas_object_hide(obj); 78 evas_object_hide(obj);
84} 79}