summaryrefslogtreecommitdiff
path: root/src/examples/popup_example_01.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/popup_example_01.c')
-rw-r--r--src/examples/popup_example_01.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/examples/popup_example_01.c b/src/examples/popup_example_01.c
index 7cdcf674f..141317e5f 100644
--- a/src/examples/popup_example_01.c
+++ b/src/examples/popup_example_01.c
@@ -2,18 +2,13 @@
2//gcc -o popup_example_01 popup_example_01.c -g `pkg-config --cflags --libs elementary` 2//gcc -o popup_example_01 popup_example_01.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 _block_clicked(void *data, Evas_Object *obj, void *event_info); 7static void _block_clicked(void *data, Evas_Object *obj, void *event_info);
13static void _timeout(void *data, Evas_Object *obj, void *event_info); 8static void _timeout(void *data, Evas_Object *obj, void *event_info);
14 9
15EAPI_MAIN int 10EAPI_MAIN int
16elm_main(int argc __UNUSED__, char **argv __UNUSED__) 11elm_main(int argc, char **argv)
17{ 12{
18 Evas_Object *win, *bg, *popup, *content; 13 Evas_Object *win, *bg, *popup, *content;
19 14
@@ -53,14 +48,14 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
53ELM_MAIN() 48ELM_MAIN()
54 49
55static void 50static void
56_block_clicked(void *data __UNUSED__, Evas_Object *obj, 51_block_clicked(void *data, Evas_Object *obj,
57 void *event_info __UNUSED__) 52 void *event_info)
58{ 53{
59 evas_object_hide(obj); 54 evas_object_hide(obj);
60} 55}
61 56
62static void 57static void
63_timeout(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 58_timeout(void *data, Evas_Object *obj, void *event_info)
64{ 59{
65 evas_object_hide(obj); 60 evas_object_hide(obj);
66} 61}