summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-stacking.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 01:40:50 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 01:40:50 +0000
commit4e6ce9277fcba39e7e1d2d177d670e94077b2f1c (patch)
treef61d0c296beb0ce749e625d399595aeeb132f74a /src/examples/evas/evas-stacking.c
parent209347f148d199066d4f1ed96364c8536874597a (diff)
efl/evas: add ecore-evas dependent examples.
nice feature of single tree efl is that evas examples can use ecore-evas :-) SVN revision: 81919
Diffstat (limited to 'src/examples/evas/evas-stacking.c')
-rw-r--r--src/examples/evas/evas-stacking.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c
index 49fc819..d8e60d6 100644
--- a/src/examples/evas/evas-stacking.c
+++ b/src/examples/evas/evas-stacking.c
@@ -14,9 +14,7 @@
14#ifdef HAVE_CONFIG_H 14#ifdef HAVE_CONFIG_H
15#include "config.h" 15#include "config.h"
16#else 16#else
17 17#define PACKAGE_EXAMPLES_DIR "."
18#define __UNUSED__
19
20#endif 18#endif
21 19
22#include <Ecore.h> 20#include <Ecore.h>
@@ -55,10 +53,10 @@ static const char *commands = \
55 "\th - print help\n"; 53 "\th - print help\n";
56 54
57static void 55static void
58_on_mouse_down(void *data __UNUSED__, 56_on_mouse_down(void *data EINA_UNUSED,
59 Evas *evas __UNUSED__, 57 Evas *evas EINA_UNUSED,
60 Evas_Object *o, 58 Evas_Object *o,
61 void *einfo __UNUSED__) 59 void *einfo EINA_UNUSED)
62{ 60{
63 fprintf(stdout, "Mouse down on rectangle %s!\n", evas_object_name_get(o)); 61 fprintf(stdout, "Mouse down on rectangle %s!\n", evas_object_name_get(o));
64} 62}
@@ -77,9 +75,9 @@ _canvas_resize_cb(Ecore_Evas *ee)
77/* use the following commands to interact with this example - 'h' is 75/* use the following commands to interact with this example - 'h' is
78 * the key for help */ 76 * the key for help */
79static void 77static void
80_on_keydown(void *data __UNUSED__, 78_on_keydown(void *data EINA_UNUSED,
81 Evas *evas __UNUSED__, 79 Evas *evas EINA_UNUSED,
82 Evas_Object *o __UNUSED__, 80 Evas_Object *o EINA_UNUSED,
83 void *einfo) 81 void *einfo)
84{ 82{
85 Evas_Event_Key_Down *ev = einfo; 83 Evas_Event_Key_Down *ev = einfo;
@@ -241,7 +239,7 @@ _on_keydown(void *data __UNUSED__,
241} 239}
242 240
243static void 241static void
244_on_destroy(Ecore_Evas *ee __UNUSED__) 242_on_destroy(Ecore_Evas *ee EINA_UNUSED)
245{ 243{
246 ecore_main_loop_quit(); 244 ecore_main_loop_quit();
247} 245}