summaryrefslogtreecommitdiff
path: root/src/examples/popup_example_02.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/popup_example_02.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/popup_example_02.c')
-rw-r--r--src/examples/popup_example_02.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/examples/popup_example_02.c b/src/examples/popup_example_02.c
index 886010f7e..2a5e0306b 100644
--- a/src/examples/popup_example_02.c
+++ b/src/examples/popup_example_02.c
@@ -2,17 +2,12 @@
2//gcc -o popup_example_02 popup_example_02.c -g `pkg-config --cflags --libs elementary` 2//gcc -o popup_example_02 popup_example_02.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#define PACKAGE_DATA_DIR "../../data"
6# include "elementary_config.h"
7#else
8# define __UNUSED__ __attribute__((unused))
9# define PACKAGE_DATA_DIR "../../data"
10#endif
11 6
12static void _response_cb(void *data, Evas_Object *obj, void *event_info); 7static void _response_cb(void *data, Evas_Object *obj, void *event_info);
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, *bg, *popup, *btn1, *btn2, *btn3, *icon1; 12 Evas_Object *win, *bg, *popup, *btn1, *btn2, *btn3, *icon1;
18 char buf[256]; 13 char buf[256];
@@ -80,8 +75,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
80ELM_MAIN() 75ELM_MAIN()
81 76
82static void 77static void
83_response_cb(void *data, Evas_Object *obj __UNUSED__, 78_response_cb(void *data, Evas_Object *obj,
84 void *event_info __UNUSED__) 79 void *event_info)
85{ 80{
86 evas_object_del(data); 81 evas_object_del(data);
87} 82}