summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/examples/ecore/ecore_animator_example.c2
-rw-r--r--src/examples/ecore/ecore_audio_custom.c3
-rw-r--r--src/examples/ecore/ecore_audio_playback.c3
-rw-r--r--src/examples/ecore/ecore_audio_to_ogg.c3
-rw-r--r--src/examples/ecore/ecore_client_bench.c3
-rw-r--r--src/examples/ecore/ecore_con_client_example.c3
-rw-r--r--src/examples/ecore/ecore_con_client_simple_example.c3
-rw-r--r--src/examples/ecore/ecore_con_lookup_example.c3
-rw-r--r--src/examples/ecore/ecore_con_server_example.c3
-rw-r--r--src/examples/ecore/ecore_con_server_http_example.c3
-rw-r--r--src/examples/ecore/ecore_con_server_simple_example.c3
-rw-r--r--src/examples/ecore/ecore_con_url_cookies_example.c3
-rw-r--r--src/examples/ecore/ecore_con_url_download_example.c3
-rw-r--r--src/examples/ecore/ecore_con_url_headers_example.c3
-rw-r--r--src/examples/ecore/ecore_evas_basics_example.c2
-rw-r--r--src/examples/ecore/ecore_evas_buffer_example_01.c2
-rw-r--r--src/examples/ecore/ecore_evas_buffer_example_02.c2
-rw-r--r--src/examples/ecore/ecore_evas_callbacks.c2
-rw-r--r--src/examples/ecore/ecore_evas_ews_example.c2
-rw-r--r--src/examples/ecore/ecore_evas_object_example.c2
-rw-r--r--src/examples/ecore/ecore_evas_window_sizes_example.c2
-rw-r--r--src/examples/ecore/ecore_event_example_01.c6
-rw-r--r--src/examples/ecore/ecore_event_example_02.c3
-rw-r--r--src/examples/ecore/ecore_fd_handler_gnutls_example.c3
-rw-r--r--src/examples/ecore/ecore_file_download_example.c3
-rw-r--r--src/examples/ecore/ecore_idler_example.c3
-rw-r--r--src/examples/ecore/ecore_imf_example.c2
-rw-r--r--src/examples/ecore/ecore_job_example.c3
-rw-r--r--src/examples/ecore/ecore_pipe_gstreamer_example.c3
-rw-r--r--src/examples/ecore/ecore_poller_example.c3
-rw-r--r--src/examples/ecore/ecore_server_bench.c3
-rw-r--r--src/examples/ecore/ecore_thread_example.c2
-rw-r--r--src/examples/ecore/ecore_time_functions_example.c3
-rw-r--r--src/examples/ecore/ecore_timer_example.c3
-rw-r--r--src/examples/edbus/banshee.c3
-rw-r--r--src/examples/edbus/client.c3
-rw-r--r--src/examples/edbus/complex-types-client-eina-value.c3
-rw-r--r--src/examples/edbus/complex-types-server.c3
-rw-r--r--src/examples/edbus/complex-types.c3
-rw-r--r--src/examples/edbus/connman-list-services.c3
-rw-r--r--src/examples/edbus/ofono-dial.c3
-rw-r--r--src/examples/edbus/server.c3
-rw-r--r--src/examples/edbus/simple-signal-emit.c3
-rw-r--r--src/examples/edje/animations2.c33
-rw-r--r--src/examples/edje/edje-animations.c31
-rw-r--r--src/examples/edje/edje-basic.c45
-rw-r--r--src/examples/edje/edje-basic2.c41
-rw-r--r--src/examples/edje/edje-box.c31
-rw-r--r--src/examples/edje/edje-box2.c31
-rw-r--r--src/examples/edje/edje-codegen-example.c40
-rw-r--r--src/examples/edje/edje-color-class.c27
-rw-r--r--src/examples/edje/edje-drag.c31
-rw-r--r--src/examples/edje/edje-multisense.c9
-rw-r--r--src/examples/edje/edje-perspective.c35
-rw-r--r--src/examples/edje/edje-signals-messages.c42
-rw-r--r--src/examples/edje/edje-swallow.c31
-rw-r--r--src/examples/edje/edje-swallow2.c43
-rw-r--r--src/examples/edje/edje-table.c31
-rw-r--r--src/examples/edje/edje-text.c31
-rw-r--r--src/examples/edje/edje_example.c10
-rw-r--r--src/examples/edje/signals2.c31
-rw-r--r--src/examples/edje/sigtest.c53
-rw-r--r--src/examples/eet/eet-basic.c3
-rw-r--r--src/examples/eet/eet-data-cipher_decipher.c5
-rw-r--r--src/examples/eet/eet-data-file_descriptor_01.c6
-rw-r--r--src/examples/eet/eet-data-file_descriptor_02.c5
-rw-r--r--src/examples/eet/eet-data-nested.c6
-rw-r--r--src/examples/eet/eet-data-simple.c6
-rw-r--r--src/examples/eet/eet-file.c6
-rw-r--r--src/examples/eina/eina_simple_xml_parser_01.c2
-rw-r--r--src/examples/eina/eina_xattr_01.c2
-rw-r--r--src/examples/eio/eio_file_copy.c5
-rw-r--r--src/examples/eio/eio_file_ls.c5
-rw-r--r--src/examples/emotion/emotion_basic_example.c3
-rw-r--r--src/examples/emotion/emotion_border_example.c3
-rw-r--r--src/examples/emotion/emotion_generic_example.c3
-rw-r--r--src/examples/emotion/emotion_generic_subtitle_example.c3
-rw-r--r--src/examples/emotion/emotion_signals_example.c3
-rw-r--r--src/examples/ethumb_client/ethumb_dbus.c2
-rw-r--r--src/examples/evas/evas-aspect-hints.c3
-rw-r--r--src/examples/evas/evas-hints.c2
-rw-r--r--src/examples/evas/evas-images3.c2
-rw-r--r--src/examples/evas/evas-init-shutdown.c3
-rw-r--r--src/examples/evas/evas-map-utils.c10
-rw-r--r--src/examples/evas/evas-object-manipulation-eo.c2
-rw-r--r--src/examples/evas/evas-stacking.c2
-rw-r--r--src/examples/evas/evas-table.c2
87 files changed, 358 insertions, 484 deletions
diff --git a/src/examples/ecore/ecore_animator_example.c b/src/examples/ecore/ecore_animator_example.c
index 545d48a..c35261d 100644
--- a/src/examples/ecore/ecore_animator_example.c
+++ b/src/examples/ecore/ecore_animator_example.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g -Wall `pkg-config --cflags --libs ecore-evas` -o ecore_animator_example ecore_animator_example.c 2//gcc -g -Wall `pkg-config --cflags --libs evas ecore-evas` -o ecore_animator_example ecore_animator_example.c
3 3
4#include <Ecore.h> 4#include <Ecore.h>
5#include <Ecore_Evas.h> 5#include <Ecore_Evas.h>
diff --git a/src/examples/ecore/ecore_audio_custom.c b/src/examples/ecore/ecore_audio_custom.c
index d94a4b4..b63d2a5 100644
--- a/src/examples/ecore/ecore_audio_custom.c
+++ b/src/examples/ecore/ecore_audio_custom.c
@@ -1,3 +1,6 @@
1// Compile with:
2// gcc -o ecore_audio_custom ecore_audio_custom.c `pkg-config --libs --cflags ecore ecore-audio`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <sys/types.h> 5#include <sys/types.h>
3#include <sys/stat.h> 6#include <sys/stat.h>
diff --git a/src/examples/ecore/ecore_audio_playback.c b/src/examples/ecore/ecore_audio_playback.c
index 1ec7444..6b0f0f4 100644
--- a/src/examples/ecore/ecore_audio_playback.c
+++ b/src/examples/ecore/ecore_audio_playback.c
@@ -1,3 +1,6 @@
1// Compile with:
2// gcc -o ecore_audio_playback ecore_audio_playback.c `pkg-config --libs --cflags ecore eina ecore-audio`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <string.h> 5#include <string.h>
3#include <libgen.h> 6#include <libgen.h>
diff --git a/src/examples/ecore/ecore_audio_to_ogg.c b/src/examples/ecore/ecore_audio_to_ogg.c
index 120f9f9..8cbf288 100644
--- a/src/examples/ecore/ecore_audio_to_ogg.c
+++ b/src/examples/ecore/ecore_audio_to_ogg.c
@@ -1,3 +1,6 @@
1// Compile with:
2// gcc -o ecore_audio_to_ogg ecore_audio_to_ogg.c `pkg-config --libs --cflags ecore eina ecore-audio`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <libgen.h> 5#include <libgen.h>
3#include <sys/types.h> 6#include <sys/types.h>
diff --git a/src/examples/ecore/ecore_client_bench.c b/src/examples/ecore/ecore_client_bench.c
index dc550ee..f4ef3ed 100644
--- a/src/examples/ecore/ecore_client_bench.c
+++ b/src/examples/ecore/ecore_client_bench.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_client_bench ecore_client_bench.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Ecore.h> 5#include <Ecore.h>
3#include <Ecore_Con.h> 6#include <Ecore_Con.h>
diff --git a/src/examples/ecore/ecore_con_client_example.c b/src/examples/ecore/ecore_con_client_example.c
index ae4bd84..580289f 100644
--- a/src/examples/ecore/ecore_con_client_example.c
+++ b/src/examples/ecore/ecore_con_client_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_client_example ecore_con_client_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
diff --git a/src/examples/ecore/ecore_con_client_simple_example.c b/src/examples/ecore/ecore_con_client_simple_example.c
index 48b1933..d315bd6 100644
--- a/src/examples/ecore/ecore_con_client_simple_example.c
+++ b/src/examples/ecore/ecore_con_client_simple_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_client_simple_example ecore_con_client_simple_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Ecore.h> 5#include <Ecore.h>
3#include <Ecore_Con.h> 6#include <Ecore_Con.h>
diff --git a/src/examples/ecore/ecore_con_lookup_example.c b/src/examples/ecore/ecore_con_lookup_example.c
index 1a47d0b..d81abf3 100644
--- a/src/examples/ecore/ecore_con_lookup_example.c
+++ b/src/examples/ecore/ecore_con_lookup_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_lookup_example ecore_con_lookup_example.c `pkg-config --libs --cflags ecore ecore-con`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Ecore.h> 5#include <Ecore.h>
3#include <Ecore_Con.h> 6#include <Ecore_Con.h>
diff --git a/src/examples/ecore/ecore_con_server_example.c b/src/examples/ecore/ecore_con_server_example.c
index 9b929e4..da63d28 100644
--- a/src/examples/ecore/ecore_con_server_example.c
+++ b/src/examples/ecore/ecore_con_server_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_server_example ecore_con_server_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
diff --git a/src/examples/ecore/ecore_con_server_http_example.c b/src/examples/ecore/ecore_con_server_http_example.c
index 14d1ecb..c6e9c23 100644
--- a/src/examples/ecore/ecore_con_server_http_example.c
+++ b/src/examples/ecore/ecore_con_server_http_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_server_http_example ecore_con_server_http_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <sys/time.h> 5#include <sys/time.h>
3#include <Ecore.h> 6#include <Ecore.h>
diff --git a/src/examples/ecore/ecore_con_server_simple_example.c b/src/examples/ecore/ecore_con_server_simple_example.c
index c771b2a..8cae748 100644
--- a/src/examples/ecore/ecore_con_server_simple_example.c
+++ b/src/examples/ecore/ecore_con_server_simple_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_server_simple_example ecore_con_server_simple_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Ecore.h> 5#include <Ecore.h>
3#include <Ecore_Con.h> 6#include <Ecore_Con.h>
diff --git a/src/examples/ecore/ecore_con_url_cookies_example.c b/src/examples/ecore/ecore_con_url_cookies_example.c
index 908df0f..dce9989 100644
--- a/src/examples/ecore/ecore_con_url_cookies_example.c
+++ b/src/examples/ecore/ecore_con_url_cookies_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_url_cookies_example ecore_con_url_cookies_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Eina.h> 5#include <Eina.h>
3#include <Ecore.h> 6#include <Ecore.h>
diff --git a/src/examples/ecore/ecore_con_url_download_example.c b/src/examples/ecore/ecore_con_url_download_example.c
index 6eed89a..2723cc8 100644
--- a/src/examples/ecore/ecore_con_url_download_example.c
+++ b/src/examples/ecore/ecore_con_url_download_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_url_download_example ecore_con_url_download_example.c `pkg-config --libs --cflags ecore ecore-con`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <sys/types.h> 5#include <sys/types.h>
3#include <sys/stat.h> 6#include <sys/stat.h>
diff --git a/src/examples/ecore/ecore_con_url_headers_example.c b/src/examples/ecore/ecore_con_url_headers_example.c
index fb05df3..0911c68 100644
--- a/src/examples/ecore/ecore_con_url_headers_example.c
+++ b/src/examples/ecore/ecore_con_url_headers_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_con_url_headers_example ecore_con_url_headers_example.c `pkg-config --libs --cflags ecore ecore-con eina`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Eina.h> 5#include <Eina.h>
3#include <Ecore.h> 6#include <Ecore.h>
diff --git a/src/examples/ecore/ecore_evas_basics_example.c b/src/examples/ecore/ecore_evas_basics_example.c
index b62c64a..b6fb94a 100644
--- a/src/examples/ecore/ecore_evas_basics_example.c
+++ b/src/examples/ecore/ecore_evas_basics_example.c
@@ -5,7 +5,7 @@
5 * buffer one). See stdout/stderr for output. 5 * buffer one). See stdout/stderr for output.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -o ecore_evas_basics_example ecore_evas_basics_example.c `pkg-config --libs --cflags ecore-evas` 8 * gcc -o ecore_evas_basics_example ecore_evas_basics_example.c `pkg-config --libs --cflags ecore evas ecore-evas`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
diff --git a/src/examples/ecore/ecore_evas_buffer_example_01.c b/src/examples/ecore/ecore_evas_buffer_example_01.c
index 39f6dd1..71ed986 100644
--- a/src/examples/ecore/ecore_evas_buffer_example_01.c
+++ b/src/examples/ecore/ecore_evas_buffer_example_01.c
@@ -7,7 +7,7 @@
7 * Compile with: 7 * Compile with:
8 * 8 *
9 * @verbatim 9 * @verbatim
10 * gcc -o evas-buffer-simple evas-buffer-simple.c `pkg-config --libs --cflags evas evas-software-buffer` 10 * gcc -o ecore_evas_buffer_example_01 ecore_evas_buffer_example_01.c `pkg-config --libs --cflags evas ecore-evas evas-software-buffer`
11 * @endverbatim 11 * @endverbatim
12 * 12 *
13 */ 13 */
diff --git a/src/examples/ecore/ecore_evas_buffer_example_02.c b/src/examples/ecore/ecore_evas_buffer_example_02.c
index d30d764..0d59e1f 100644
--- a/src/examples/ecore/ecore_evas_buffer_example_02.c
+++ b/src/examples/ecore/ecore_evas_buffer_example_02.c
@@ -7,7 +7,7 @@
7 * Compile with: 7 * Compile with:
8 * 8 *
9 * @verbatim 9 * @verbatim
10 * gcc -o evas-buffer-simple evas-buffer-simple.c `pkg-config --libs --cflags evas evas-software-buffer` 10 * gcc -o ecore_evas_buffer_example_02 ecore_evas_buffer_example_02.c `pkg-config --libs --cflags ecore evas ecore-evas evas-software-buffer`
11 * @endverbatim 11 * @endverbatim
12 * 12 *
13 */ 13 */
diff --git a/src/examples/ecore/ecore_evas_callbacks.c b/src/examples/ecore/ecore_evas_callbacks.c
index 3e42da1..5c1a5d6 100644
--- a/src/examples/ecore/ecore_evas_callbacks.c
+++ b/src/examples/ecore/ecore_evas_callbacks.c
@@ -5,7 +5,7 @@
5 * buffer one). See stdout/stderr for output. 5 * buffer one). See stdout/stderr for output.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -o ecore_evas_callbacks ecore_evas_callbacks.c `pkg-config --libs --cflags ecore-evas` 8 * gcc -o ecore_evas_callbacks ecore_evas_callbacks.c `pkg-config --libs --cflags ecore ecore-evas`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
diff --git a/src/examples/ecore/ecore_evas_ews_example.c b/src/examples/ecore/ecore_evas_ews_example.c
index 1209ffd..07c0a23 100644
--- a/src/examples/ecore/ecore_evas_ews_example.c
+++ b/src/examples/ecore/ecore_evas_ews_example.c
@@ -5,7 +5,7 @@
5 * buffer one). See stdout/stderr for output. 5 * buffer one). See stdout/stderr for output.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -o ecore_evas_ews_example ecore_evas_ews_example.c `pkg-config --libs --cflags ecore-evas` 8 * gcc -o ecore_evas_ews_example ecore_evas_ews_example.c `pkg-config --libs --cflags ecore evas ecore-evas`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
diff --git a/src/examples/ecore/ecore_evas_object_example.c b/src/examples/ecore/ecore_evas_object_example.c
index 38e4c4b..c76f186 100644
--- a/src/examples/ecore/ecore_evas_object_example.c
+++ b/src/examples/ecore/ecore_evas_object_example.c
@@ -5,7 +5,7 @@
5 * buffer one). See stdout/stderr for output. 5 * buffer one). See stdout/stderr for output.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -o ecore_evas_object_example ecore_evas_object_example.c `pkg-config --libs --cflags ecore-evas` 8 * gcc -o ecore_evas_object_example ecore_evas_object_example.c `pkg-config --libs --cflags ecore evas ecore-evas`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
diff --git a/src/examples/ecore/ecore_evas_window_sizes_example.c b/src/examples/ecore/ecore_evas_window_sizes_example.c
index 833529e..5edd52a 100644
--- a/src/examples/ecore/ecore_evas_window_sizes_example.c
+++ b/src/examples/ecore/ecore_evas_window_sizes_example.c
@@ -6,7 +6,7 @@
6 * one). See stdout/stderr for output. 6 * one). See stdout/stderr for output.
7 * 7 *
8 * @verbatim 8 * @verbatim
9 * gcc -o evas-smart-object evas-smart-object.c `pkg-config --libs --cflags evas ecore ecore-evas` 9 * gcc -o ecore_evas_window_sizes_example ecore_evas_window_sizes_example.c `pkg-config --libs --cflags evas ecore ecore-evas`
10 * @endverbatim 10 * @endverbatim
11 */ 11 */
12 12
diff --git a/src/examples/ecore/ecore_event_example_01.c b/src/examples/ecore/ecore_event_example_01.c
index 64a5be8..708afba 100644
--- a/src/examples/ecore/ecore_event_example_01.c
+++ b/src/examples/ecore/ecore_event_example_01.c
@@ -1,7 +1,5 @@
1/* 1//Compile with:
2 * Compile with: 2// gcc -g -Wall `pkg-config --cflags --libs ecore` -o ecore_event_example_01 ecore_event_example_01.c
3 * gcc -g -Wall `pkg-config --cflags --libs ecore` -o ecore_event_example ecore_event_example.c
4 */
5 3
6#include <Ecore.h> 4#include <Ecore.h>
7 5
diff --git a/src/examples/ecore/ecore_event_example_02.c b/src/examples/ecore/ecore_event_example_02.c
index c293e65..c8161ba 100644
--- a/src/examples/ecore/ecore_event_example_02.c
+++ b/src/examples/ecore/ecore_event_example_02.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -g -Wall `pkg-config --cflags --libs ecore` -o ecore_event_example_02 ecore_event_example_02.c
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <unistd.h> 5#include <unistd.h>
3 6
diff --git a/src/examples/ecore/ecore_fd_handler_gnutls_example.c b/src/examples/ecore/ecore_fd_handler_gnutls_example.c
index 5635b13..078b5d7 100644
--- a/src/examples/ecore/ecore_fd_handler_gnutls_example.c
+++ b/src/examples/ecore/ecore_fd_handler_gnutls_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_fd_handler_gnutls_example ecore_fd_handler_gnutls_example.c `pkg-config --cflags --libs ecore gnutls`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <fcntl.h> 5#include <fcntl.h>
3#include <netinet/tcp.h> 6#include <netinet/tcp.h>
diff --git a/src/examples/ecore/ecore_file_download_example.c b/src/examples/ecore/ecore_file_download_example.c
index 42cff6c..e44c7e7 100644
--- a/src/examples/ecore/ecore_file_download_example.c
+++ b/src/examples/ecore/ecore_file_download_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_file_download_example ecore_file_download_example.c `pkg-config --libs --cflags ecore eina ecore-file`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Eina.h> 5#include <Eina.h>
3#include <Ecore.h> 6#include <Ecore.h>
diff --git a/src/examples/ecore/ecore_idler_example.c b/src/examples/ecore/ecore_idler_example.c
index 9db99cd..de69a44 100644
--- a/src/examples/ecore/ecore_idler_example.c
+++ b/src/examples/ecore/ecore_idler_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_idler_example ecore_idler_example.c `pkg-config --libs --cflags ecore eo`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <unistd.h> 5#include <unistd.h>
3 6
diff --git a/src/examples/ecore/ecore_imf_example.c b/src/examples/ecore/ecore_imf_example.c
index 9aa3334..bc03db9 100644
--- a/src/examples/ecore/ecore_imf_example.c
+++ b/src/examples/ecore/ecore_imf_example.c
@@ -2,7 +2,7 @@
2 * Ecore example illustrating how to use ecore imf. 2 * Ecore example illustrating how to use ecore imf.
3 * 3 *
4 * @verbatim 4 * @verbatim
5 * gcc -o ecore_imf_example ecore_imf_example.c `pkg-config --cflags --libs ecore evas ecore-evas ecore-imf ecore-imf-evas` 5 * gcc -o ecore_imf_example ecore_imf_example.c `pkg-config --cflags --libs ecore evas eina ecore-evas ecore-imf ecore-imf-evas`
6 * @endverbatim 6 * @endverbatim
7 */ 7 */
8 8
diff --git a/src/examples/ecore/ecore_job_example.c b/src/examples/ecore/ecore_job_example.c
index 561a851..2621d7f 100644
--- a/src/examples/ecore/ecore_job_example.c
+++ b/src/examples/ecore/ecore_job_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_job_example ecore_job_example.c `pkg-config --libs --cflags ecore`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <unistd.h> 5#include <unistd.h>
3 6
diff --git a/src/examples/ecore/ecore_pipe_gstreamer_example.c b/src/examples/ecore/ecore_pipe_gstreamer_example.c
index 7eb5370..008b96e 100644
--- a/src/examples/ecore/ecore_pipe_gstreamer_example.c
+++ b/src/examples/ecore/ecore_pipe_gstreamer_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_pipe_gstreamer_example ecore_pipe_gstreamer_example.c `pkg-config --libs --cflags ecore gstreamer-0.10`
3
1#include <gst/gst.h> 4#include <gst/gst.h>
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/ecore/ecore_poller_example.c b/src/examples/ecore/ecore_poller_example.c
index ccd1c2e..ef8592b 100644
--- a/src/examples/ecore/ecore_poller_example.c
+++ b/src/examples/ecore/ecore_poller_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_poller_example ecore_poller_example.c `pkg-config --libs --cflags ecore eo`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <unistd.h> 5#include <unistd.h>
3 6
diff --git a/src/examples/ecore/ecore_server_bench.c b/src/examples/ecore/ecore_server_bench.c
index 1f9b63a..8c5961e 100644
--- a/src/examples/ecore/ecore_server_bench.c
+++ b/src/examples/ecore/ecore_server_bench.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_server_bench ecore_server_bench.c `pkg-config --libs --cflags ecore eina ecore-con`
3
1#include <stdio.h> 4#include <stdio.h>
2#include <Ecore.h> 5#include <Ecore.h>
3#include <Ecore_Con.h> 6#include <Ecore_Con.h>
diff --git a/src/examples/ecore/ecore_thread_example.c b/src/examples/ecore/ecore_thread_example.c
index a344919..74cbffb 100644
--- a/src/examples/ecore/ecore_thread_example.c
+++ b/src/examples/ecore/ecore_thread_example.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * gcc -o ecore_thread_example ecore_thread_example.c `pkg-config --cflags --libs ecore` 2 * gcc -o ecore_thread_example ecore_thread_example.c `pkg-config --cflags --libs ecore eina`
3 */ 3 */
4#include <stdio.h> 4#include <stdio.h>
5#include <stdlib.h> 5#include <stdlib.h>
diff --git a/src/examples/ecore/ecore_time_functions_example.c b/src/examples/ecore/ecore_time_functions_example.c
index d742c8b..3e7b703 100644
--- a/src/examples/ecore/ecore_time_functions_example.c
+++ b/src/examples/ecore/ecore_time_functions_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_time_functions_example ecore_time_functions_example.c `pkg-config --libs --cflags ecore`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <unistd.h> 5#include <unistd.h>
3 6
diff --git a/src/examples/ecore/ecore_timer_example.c b/src/examples/ecore/ecore_timer_example.c
index bafeacb..27d2958 100644
--- a/src/examples/ecore/ecore_timer_example.c
+++ b/src/examples/ecore/ecore_timer_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ecore_timer_example ecore_timer_example.c `pkg-config --libs --cflags ecore`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <unistd.h> 5#include <unistd.h>
3 6
diff --git a/src/examples/edbus/banshee.c b/src/examples/edbus/banshee.c
index 8223139..62194b3 100644
--- a/src/examples/edbus/banshee.c
+++ b/src/examples/edbus/banshee.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o banshee banshee.c `pkg-config --cflags --libs edbus2 ecore eina`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/client.c b/src/examples/edbus/client.c
index 8a0420c..61b3e24 100644
--- a/src/examples/edbus/client.c
+++ b/src/examples/edbus/client.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o client client.c `pkg-config --cflags --libs edbus2 ecore eina`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/complex-types-client-eina-value.c b/src/examples/edbus/complex-types-client-eina-value.c
index cde7c9b..91b3ecc 100644
--- a/src/examples/edbus/complex-types-client-eina-value.c
+++ b/src/examples/edbus/complex-types-client-eina-value.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o complex-types-client-eina-value complex-types-client-eina-value.c `pkg-config --cflags --libs edbus2 ecore eina`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/complex-types-server.c b/src/examples/edbus/complex-types-server.c
index 7441690..2409ce7 100644
--- a/src/examples/edbus/complex-types-server.c
+++ b/src/examples/edbus/complex-types-server.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o complex-types-server complex-types-server.c `pkg-config --cflags --libs edbus2 ecore`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/complex-types.c b/src/examples/edbus/complex-types.c
index e60badf..3fa4e0b 100644
--- a/src/examples/edbus/complex-types.c
+++ b/src/examples/edbus/complex-types.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o complex-types complex-types.c `pkg-config --cflags --libs edbus2 ecore`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/connman-list-services.c b/src/examples/edbus/connman-list-services.c
index 73b3970..7bd81c2 100644
--- a/src/examples/edbus/connman-list-services.c
+++ b/src/examples/edbus/connman-list-services.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o connman-list-services connman-list-services.c `pkg-config --cflags --libs edbus2 ecore`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/ofono-dial.c b/src/examples/edbus/ofono-dial.c
index b2da855..84729db 100644
--- a/src/examples/edbus/ofono-dial.c
+++ b/src/examples/edbus/ofono-dial.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o ofono-dial ofono-dial.c `pkg-config --cflags --libs edbus2 ecore`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/server.c b/src/examples/edbus/server.c
index dd606bd..d10a672 100644
--- a/src/examples/edbus/server.c
+++ b/src/examples/edbus/server.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o server server.c `pkg-config --cflags --libs edbus2 ecore`
3
1#include "EDBus.h" 4#include "EDBus.h"
2#include <Ecore.h> 5#include <Ecore.h>
3 6
diff --git a/src/examples/edbus/simple-signal-emit.c b/src/examples/edbus/simple-signal-emit.c
index 960bfe6..14e1fee 100644
--- a/src/examples/edbus/simple-signal-emit.c
+++ b/src/examples/edbus/simple-signal-emit.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o simple-signal-emit simple-signal-emit.c `pkg-config --cflags --libs edbus2`
3
1#include <EDBus.h> 4#include <EDBus.h>
2 5
3enum { 6enum {
diff --git a/src/examples/edje/animations2.c b/src/examples/edje/animations2.c
index 045c5cc..e33f0e7 100644
--- a/src/examples/edje/animations2.c
+++ b/src/examples/edje/animations2.c
@@ -1,3 +1,6 @@
1//Compile with:
2// edje_cc animations2.edc && gcc -o animations2 animations2.c `pkg-config --libs --cflags ecore ecore-evas edje`
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#else 6#else
@@ -5,6 +8,10 @@
5#define EINA_UNUSED 8#define EINA_UNUSED
6#endif 9#endif
7 10
11#ifndef PACKAGE_DATA_DIR
12#define PACKAGE_DATA_DIR "."
13#endif
14
8#include <Ecore.h> 15#include <Ecore.h>
9#include <Ecore_Evas.h> 16#include <Ecore_Evas.h>
10#include <Edje.h> 17#include <Edje.h>
@@ -14,19 +21,17 @@
14#define HEIGHT (700) 21#define HEIGHT (700)
15 22
16static void 23static void
17_on_delete(Ecore_Evas *ee) 24_on_delete(Ecore_Evas *ee EINA_UNUSED)
18{ 25{
19 ecore_main_loop_quit(); 26 ecore_main_loop_quit();
20} 27}
21 28
22int 29int
23main(int argc EINA_UNUSED, char **argv) 30main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
24{ 31{
25 char edje_file_path[PATH_MAX]; 32 const char *edje_file = PACKAGE_DATA_DIR"/animations2.edj";
26 const char *edje_file = "animations2.edj";
27 Evas *evas; 33 Evas *evas;
28 Ecore_Evas *ee; 34 Ecore_Evas *ee;
29 Eina_Prefix *pfx;
30 Evas_Object *edje_obj; 35 Evas_Object *edje_obj;
31 Evas_Object *bg; 36 Evas_Object *bg;
32 37
@@ -34,15 +39,9 @@ main(int argc EINA_UNUSED, char **argv)
34 39
35 if (!edje_init()) goto shutdown_ecore_evas; 40 if (!edje_init()) goto shutdown_ecore_evas;
36 41
37 pfx = eina_prefix_new(argv[0], main, "EDJE_EXAMPLES", "edje/examples",
38 edje_file, PACKAGE_BIN_DIR, PACKAGE_LIB_DIR,
39 PACKAGE_DATA_DIR, PACKAGE_DATA_DIR);
40
41 if (!pfx) goto shutdown_edje;
42
43 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 42 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
44 43
45 if (!ee) goto eina_prefix_free; 44 if (!ee) goto shutdown_edje;
46 45
47 ecore_evas_callback_delete_request_set(ee, _on_delete); 46 ecore_evas_callback_delete_request_set(ee, _on_delete);
48 ecore_evas_title_set(ee, "Animations"); 47 ecore_evas_title_set(ee, "Animations");
@@ -60,15 +59,14 @@ main(int argc EINA_UNUSED, char **argv)
60 59
61 edje_obj = edje_object_add(evas); 60 edje_obj = edje_object_add(evas);
62 61
63 snprintf(edje_file_path, sizeof(edje_file_path), "%s/examples/%s", 62 fprintf(stderr, "loading edje file; %s\n", edje_file);
64 eina_prefix_data_get(pfx), edje_file);
65 63
66 if (!edje_object_file_set(edje_obj, edje_file_path, "animation_group")) 64 if (!edje_object_file_set(edje_obj, edje_file, "animation_group"))
67 { 65 {
68 int err = edje_object_load_error_get(edje_obj); 66 int err = edje_object_load_error_get(edje_obj);
69 const char *errmsg = edje_load_error_str(err); 67 const char *errmsg = edje_load_error_str(err);
70 fprintf(stderr, "Could not load the edje file - reason:%s\n", errmsg); 68 fprintf(stderr, "Could not load the edje file - reason:%s\n", errmsg);
71 goto eina_prefix_free; 69 goto shutdown_edje;
72 } 70 }
73 71
74 evas_object_resize(edje_obj, 700, 700); 72 evas_object_resize(edje_obj, 700, 700);
@@ -79,15 +77,12 @@ main(int argc EINA_UNUSED, char **argv)
79 77
80 ecore_main_loop_begin(); 78 ecore_main_loop_begin();
81 79
82 eina_prefix_free(pfx);
83 ecore_evas_free(ee); 80 ecore_evas_free(ee);
84 edje_shutdown(); 81 edje_shutdown();
85 ecore_evas_shutdown(); 82 ecore_evas_shutdown();
86 83
87 return EXIT_SUCCESS; 84 return EXIT_SUCCESS;
88 85
89 eina_prefix_free: eina_prefix_free(pfx);
90
91 shutdown_edje: edje_shutdown(); 86 shutdown_edje: edje_shutdown();
92 87
93 shutdown_ecore_evas: ecore_evas_shutdown(); 88 shutdown_ecore_evas: ecore_evas_shutdown();
diff --git a/src/examples/edje/edje-animations.c b/src/examples/edje/edje-animations.c
index c873781..413394c 100644
--- a/src/examples/edje/edje-animations.c
+++ b/src/examples/edje/edje-animations.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -143,15 +147,13 @@ _on_key_down(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj, v
143} 147}
144 148
145int 149int
146main(int argc EINA_UNUSED, char *argv[]) 150main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
147{ 151{
148 char edje_file_path[PATH_MAX]; 152 const char *edje_file = PACKAGE_DATA_DIR"/animations.edj";
149 const char *edje_file = "animations.edj";
150 Ecore_Evas *ee; 153 Ecore_Evas *ee;
151 Evas *evas; 154 Evas *evas;
152 Evas_Object *bg; 155 Evas_Object *bg;
153 Evas_Object *edje_obj; 156 Evas_Object *edje_obj;
154 Eina_Prefix *pfx;
155 157
156 if (!ecore_evas_init()) 158 if (!ecore_evas_init())
157 return EXIT_FAILURE; 159 return EXIT_FAILURE;
@@ -159,22 +161,10 @@ main(int argc EINA_UNUSED, char *argv[])
159 if (!edje_init()) 161 if (!edje_init())
160 goto shutdown_ecore_evas; 162 goto shutdown_ecore_evas;
161 163
162 pfx = eina_prefix_new(argv[0], main,
163 "EDJE_EXAMPLES",
164 "edje/examples",
165 edje_file,
166 PACKAGE_BIN_DIR,
167 PACKAGE_LIB_DIR,
168 PACKAGE_DATA_DIR,
169 PACKAGE_DATA_DIR);
170 if (!pfx)
171 goto shutdown_edje;
172
173 /* this will give you a window with an Evas canvas under the first 164 /* this will give you a window with an Evas canvas under the first
174 * engine available */ 165 * engine available */
175 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 166 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
176 if (!ee) 167 if (!ee) goto shutdown_edje;
177 goto free_prefix;
178 168
179 ecore_evas_callback_delete_request_set(ee, _on_delete_cb); 169 ecore_evas_callback_delete_request_set(ee, _on_delete_cb);
180 ecore_evas_callback_resize_set(ee, _on_canvas_resize); 170 ecore_evas_callback_resize_set(ee, _on_canvas_resize);
@@ -191,9 +181,7 @@ main(int argc EINA_UNUSED, char *argv[])
191 181
192 edje_obj = edje_object_add(evas); 182 edje_obj = edje_object_add(evas);
193 183
194 snprintf(edje_file_path, sizeof(edje_file_path), 184 edje_object_file_set(edje_obj, edje_file, "animations_group");
195 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
196 edje_object_file_set(edje_obj, edje_file_path, "animations_group");
197 evas_object_move(edje_obj, 0, 0); 185 evas_object_move(edje_obj, 0, 0);
198 evas_object_resize(edje_obj, WIDTH, HEIGHT); 186 evas_object_resize(edje_obj, WIDTH, HEIGHT);
199 evas_object_show(edje_obj); 187 evas_object_show(edje_obj);
@@ -209,15 +197,12 @@ main(int argc EINA_UNUSED, char *argv[])
209 197
210 ecore_main_loop_begin(); 198 ecore_main_loop_begin();
211 199
212 eina_prefix_free(pfx);
213 ecore_evas_free(ee); 200 ecore_evas_free(ee);
214 ecore_evas_shutdown(); 201 ecore_evas_shutdown();
215 edje_shutdown(); 202 edje_shutdown();
216 203
217 return EXIT_SUCCESS; 204 return EXIT_SUCCESS;
218 205
219 free_prefix:
220 eina_prefix_free(pfx);
221 shutdown_edje: 206 shutdown_edje:
222 edje_shutdown(); 207 edje_shutdown();
223 shutdown_ecore_evas: 208 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-basic.c b/src/examples/edje/edje-basic.c
index 4d4bc27..4c7fad6 100644
--- a/src/examples/edje/edje-basic.c
+++ b/src/examples/edje/edje-basic.c
@@ -6,7 +6,7 @@
6 * buffer one). See stdout/stderr for output. 6 * buffer one). See stdout/stderr for output.
7 * 7 *
8 * @verbatim 8 * @verbatim
9 * gcc -o edje-basic edje-basic.c `pkg-config --libs --cflags evas ecore ecore-evas edje` 9 * edje_cc basic.edc && gcc -o edje-basic edje-basic.c `pkg-config --libs --cflags evas ecore ecore-evas edje`
10 * @endverbatim 10 * @endverbatim
11 */ 11 */
12 12
@@ -16,6 +16,10 @@
16# define EINA_UNUSED 16# define EINA_UNUSED
17#endif 17#endif
18 18
19#ifndef PACKAGE_DATA_DIR
20#define PACKAGE_DATA_DIR "."
21#endif
22
19#include <stdio.h> 23#include <stdio.h>
20 24
21#include <Eina.h> 25#include <Eina.h>
@@ -98,17 +102,15 @@ _on_delete(Ecore_Evas *ee EINA_UNUSED)
98} 102}
99 103
100int 104int
101main(int argc EINA_UNUSED, char *argv[]) 105main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
102{ 106{
103 char border_img_path[PATH_MAX]; 107 const char *img_file = PACKAGE_DATA_DIR"/red.png";
104 char edje_file_path[PATH_MAX]; 108 const char *edje_file = PACKAGE_DATA_DIR"/basic.edj";
105 const char *edje_file = "basic.edj";
106 Ecore_Evas *ee; 109 Ecore_Evas *ee;
107 Evas *evas; 110 Evas *evas;
108 Evas_Object *bg; 111 Evas_Object *bg;
109 Evas_Object *border; 112 Evas_Object *border;
110 Evas_Object *edje_obj; 113 Evas_Object *edje_obj;
111 Eina_Prefix *pfx;
112 int x; 114 int x;
113 int y; 115 int y;
114 int w; 116 int w;
@@ -120,22 +122,10 @@ main(int argc EINA_UNUSED, char *argv[])
120 if (!edje_init()) 122 if (!edje_init())
121 goto shutdown_ecore_evas; 123 goto shutdown_ecore_evas;
122 124
123 pfx = eina_prefix_new(argv[0], main,
124 "EDJE_EXAMPLES",
125 "edje/examples",
126 edje_file,
127 PACKAGE_BIN_DIR,
128 PACKAGE_LIB_DIR,
129 PACKAGE_DATA_DIR,
130 PACKAGE_DATA_DIR);
131 if (!pfx)
132 goto shutdown_edje;
133
134 /* this will give you a window with an Evas canvas under the first 125 /* this will give you a window with an Evas canvas under the first
135 * engine available */ 126 * engine available */
136 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 127 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
137 if (!ee) 128 if (!ee) goto shutdown_edje;
138 goto free_prefix;
139 129
140 ecore_evas_callback_delete_request_set(ee, _on_delete); 130 ecore_evas_callback_delete_request_set(ee, _on_delete);
141 ecore_evas_title_set(ee, "Edje Basics Example"); 131 ecore_evas_title_set(ee, "Edje Basics Example");
@@ -153,11 +143,8 @@ main(int argc EINA_UNUSED, char *argv[])
153 143
154 edje_obj = edje_object_add(evas); 144 edje_obj = edje_object_add(evas);
155 145
156 snprintf(edje_file_path, sizeof(edje_file_path),
157 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
158 printf("%s\n", edje_file_path);
159 /* exercising Edje loading error, on purpose */ 146 /* exercising Edje loading error, on purpose */
160 if (!edje_object_file_set(edje_obj, edje_file_path, "unexistant_group")) 147 if (!edje_object_file_set(edje_obj, edje_file, "unexistant_group"))
161 { 148 {
162 int err = edje_object_load_error_get(edje_obj); 149 int err = edje_object_load_error_get(edje_obj);
163 const char *errmsg = edje_load_error_str(err); 150 const char *errmsg = edje_load_error_str(err);
@@ -165,7 +152,7 @@ main(int argc EINA_UNUSED, char *argv[])
165 " %s\n", errmsg); 152 " %s\n", errmsg);
166 } 153 }
167 154
168 if (!edje_object_file_set(edje_obj, edje_file_path, "example_group")) 155 if (!edje_object_file_set(edje_obj, edje_file, "example_group"))
169 { 156 {
170 int err = edje_object_load_error_get(edje_obj); 157 int err = edje_object_load_error_get(edje_obj);
171 const char *errmsg = edje_load_error_str(err); 158 const char *errmsg = edje_load_error_str(err);
@@ -173,7 +160,7 @@ main(int argc EINA_UNUSED, char *argv[])
173 errmsg); 160 errmsg);
174 161
175 evas_object_del(edje_obj); 162 evas_object_del(edje_obj);
176 goto free_prefix; 163 goto shutdown_edje;
177 } 164 }
178 165
179 fprintf(stdout, "Loaded Edje object bound to group 'example_group' from" 166 fprintf(stdout, "Loaded Edje object bound to group 'example_group' from"
@@ -185,13 +172,10 @@ main(int argc EINA_UNUSED, char *argv[])
185 172
186 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, edje_obj); 173 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, edje_obj);
187 174
188 snprintf(border_img_path, sizeof(border_img_path),
189 "%s/edje/examples/red.png", eina_prefix_data_get(pfx));
190
191 /* this is a border around the Edje object above, here just to 175 /* this is a border around the Edje object above, here just to
192 * emphasize its geometry */ 176 * emphasize its geometry */
193 border = evas_object_image_filled_add(evas); 177 border = evas_object_image_filled_add(evas);
194 evas_object_image_file_set(border, border_img_path, NULL); 178 evas_object_image_file_set(border, img_file, NULL);
195 evas_object_image_border_set(border, 2, 2, 2, 2); 179 evas_object_image_border_set(border, 2, 2, 2, 2);
196 evas_object_image_border_center_fill_set(border, EVAS_BORDER_FILL_NONE); 180 evas_object_image_border_center_fill_set(border, EVAS_BORDER_FILL_NONE);
197 181
@@ -239,15 +223,12 @@ main(int argc EINA_UNUSED, char *argv[])
239 223
240 ecore_main_loop_begin(); 224 ecore_main_loop_begin();
241 225
242 eina_prefix_free(pfx);
243 ecore_evas_free(ee); 226 ecore_evas_free(ee);
244 ecore_evas_shutdown(); 227 ecore_evas_shutdown();
245 edje_shutdown(); 228 edje_shutdown();
246 229
247 return EXIT_SUCCESS; 230 return EXIT_SUCCESS;
248 231
249 free_prefix:
250 eina_prefix_free(pfx);
251 shutdown_edje: 232 shutdown_edje:
252 edje_shutdown(); 233 edje_shutdown();
253 shutdown_ecore_evas: 234 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-basic2.c b/src/examples/edje/edje-basic2.c
index e68d1ec..8836e7e 100644
--- a/src/examples/edje/edje-basic2.c
+++ b/src/examples/edje/edje-basic2.c
@@ -1,6 +1,6 @@
1/** 1/**
2* @verbatim 2* @verbatim
3* gcc -o edje-basic2 edje-basic2.c `pkg-config --libs --cflags evas ecore ecore-evas edje` 3* edje_cc basic2.edc && gcc -o edje-basic2 edje-basic2.c `pkg-config --libs --cflags evas ecore ecore-evas edje`
4* @endverbatim 4* @endverbatim
5*/ 5*/
6 6
@@ -10,6 +10,10 @@
10# define EINA_UNUSED 10# define EINA_UNUSED
11#endif 11#endif
12 12
13#ifndef PACKAGE_DATA_DIR
14#define PACKAGE_DATA_DIR "."
15#endif
16
13#include <stdio.h> 17#include <stdio.h>
14 18
15#include <Eina.h> 19#include <Eina.h>
@@ -76,11 +80,9 @@ _on_delete(Ecore_Evas *ee EINA_UNUSED)
76} 80}
77 81
78int 82int
79main(int argc EINA_UNUSED, char **argv) 83main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
80{ 84{
81 const char *edje_file = "basic2.edj"; 85 const char *edje_file = PACKAGE_DATA_DIR"/basic2.edj";
82 char edje_file_path[PATH_MAX];
83 Eina_Prefix *pfx;
84 Ecore_Evas *ee; 86 Ecore_Evas *ee;
85 Evas *evas; 87 Evas *evas;
86 Evas_Object *bg; 88 Evas_Object *bg;
@@ -92,22 +94,9 @@ main(int argc EINA_UNUSED, char **argv)
92 if(!edje_init()) 94 if(!edje_init())
93 goto shutdown_ecore_evas; 95 goto shutdown_ecore_evas;
94 96
95 pfx = eina_prefix_new(argv[0], main,
96 "EDJE_EXAMPLES",
97 "edje/examples",
98 edje_file,
99 PACKAGE_BIN_DIR,
100 PACKAGE_LIB_DIR,
101 PACKAGE_DATA_DIR,
102 PACKAGE_DATA_DIR);
103
104 if(!pfx)
105 goto shutdown_edje;
106
107 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 97 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
108 98
109 if(!ee) 99 if(!ee) goto shutdown_edje;
110 goto eina_prefix_free;
111 100
112 ecore_evas_callback_delete_request_set(ee, _on_delete); 101 ecore_evas_callback_delete_request_set(ee, _on_delete);
113 ecore_evas_title_set(ee, "Edje show image"); 102 ecore_evas_title_set(ee, "Edje show image");
@@ -123,22 +112,16 @@ main(int argc EINA_UNUSED, char **argv)
123 ecore_evas_object_associate(ee, bg, ECORE_EVAS_OBJECT_ASSOCIATE_BASE); 112 ecore_evas_object_associate(ee, bg, ECORE_EVAS_OBJECT_ASSOCIATE_BASE);
124 evas_object_focus_set(bg, EINA_TRUE); 113 evas_object_focus_set(bg, EINA_TRUE);
125 114
126
127 edje_obj = edje_object_add(evas); 115 edje_obj = edje_object_add(evas);
128 116
129 snprintf(edje_file_path, sizeof(edje_file_path), 117 if(!edje_object_file_set(edje_obj, edje_file, "image_group"))
130 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
131
132 if(!edje_object_file_set(edje_obj, edje_file_path, "image_group"))
133 { 118 {
134 int err = edje_object_load_error_get(edje_obj); 119 int err = edje_object_load_error_get(edje_obj);
135 const char *errmsg = edje_load_error_str(err); 120 const char *errmsg = edje_load_error_str(err);
136 fprintf(stderr, "Could not load the edje file - reason:%s\n", errmsg); 121 fprintf(stderr, "Could not load the edje file - reason:%s\n", errmsg);
137 goto eina_prefix_free; 122 goto shutdown_edje;
138 } 123 }
139 124
140
141
142 evas_object_move(edje_obj, 50, 50); 125 evas_object_move(edje_obj, 50, 50);
143 evas_object_resize(edje_obj, 64, 64); 126 evas_object_resize(edje_obj, 64, 64);
144 evas_object_show(edje_obj); 127 evas_object_show(edje_obj);
@@ -151,16 +134,12 @@ main(int argc EINA_UNUSED, char **argv)
151 134
152 ecore_main_loop_begin(); 135 ecore_main_loop_begin();
153 136
154 eina_prefix_free(pfx);
155 ecore_evas_free(ee); 137 ecore_evas_free(ee);
156 edje_shutdown(); 138 edje_shutdown();
157 ecore_evas_shutdown(); 139 ecore_evas_shutdown();
158 140
159 return EXIT_SUCCESS; 141 return EXIT_SUCCESS;
160 142
161eina_prefix_free:
162 eina_prefix_free(pfx);
163
164shutdown_edje: 143shutdown_edje:
165 edje_shutdown(); 144 edje_shutdown();
166 145
diff --git a/src/examples/edje/edje-box.c b/src/examples/edje/edje-box.c
index 3da66e2..20cf56e 100644
--- a/src/examples/edje/edje-box.c
+++ b/src/examples/edje/edje-box.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -152,15 +156,13 @@ _on_bg_key_down(void *data, Evas *e, Evas_Object *o EINA_UNUSED, void *event_inf
152} 156}
153 157
154int 158int
155main(int argc EINA_UNUSED, char *argv[]) 159main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
156{ 160{
157 char edje_file_path[PATH_MAX]; 161 const char *edje_file = PACKAGE_DATA_DIR"/box.edj";
158 const char *edje_file = "box.edj";
159 Ecore_Evas *ee; 162 Ecore_Evas *ee;
160 Evas *evas; 163 Evas *evas;
161 Evas_Object *bg; 164 Evas_Object *bg;
162 Evas_Object *edje_obj; 165 Evas_Object *edje_obj;
163 Eina_Prefix *pfx;
164 int i; 166 int i;
165 167
166 if (!ecore_evas_init()) 168 if (!ecore_evas_init())
@@ -169,22 +171,10 @@ main(int argc EINA_UNUSED, char *argv[])
169 if (!edje_init()) 171 if (!edje_init())
170 goto shutdown_ecore_evas; 172 goto shutdown_ecore_evas;
171 173
172 pfx = eina_prefix_new(argv[0], main,
173 "EDJE_EXAMPLES",
174 "edje/examples",
175 edje_file,
176 PACKAGE_BIN_DIR,
177 PACKAGE_LIB_DIR,
178 PACKAGE_DATA_DIR,
179 PACKAGE_DATA_DIR);
180 if (!pfx)
181 goto shutdown_edje;
182
183 /* this will give you a window with an Evas canvas under the first 174 /* this will give you a window with an Evas canvas under the first
184 * engine available */ 175 * engine available */
185 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 176 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
186 if (!ee) 177 if (!ee) goto shutdown_edje;
187 goto free_prefix;
188 178
189 ecore_evas_callback_destroy_set(ee, _on_destroy); 179 ecore_evas_callback_destroy_set(ee, _on_destroy);
190 ecore_evas_callback_resize_set(ee, _on_canvas_resize); 180 ecore_evas_callback_resize_set(ee, _on_canvas_resize);
@@ -203,9 +193,7 @@ main(int argc EINA_UNUSED, char *argv[])
203 193
204 edje_obj = edje_object_add(evas); 194 edje_obj = edje_object_add(evas);
205 195
206 snprintf(edje_file_path, sizeof(edje_file_path), 196 edje_object_file_set(edje_obj, edje_file, "example/group");
207 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
208 edje_object_file_set(edje_obj, edje_file_path, "example/group");
209 evas_object_move(edje_obj, 0, 0); 197 evas_object_move(edje_obj, 0, 0);
210 evas_object_resize(edje_obj, WIDTH, HEIGHT); 198 evas_object_resize(edje_obj, WIDTH, HEIGHT);
211 evas_object_show(edje_obj); 199 evas_object_show(edje_obj);
@@ -234,15 +222,12 @@ main(int argc EINA_UNUSED, char *argv[])
234 222
235 ecore_main_loop_begin(); 223 ecore_main_loop_begin();
236 224
237 eina_prefix_free(pfx);
238 ecore_evas_free(ee); 225 ecore_evas_free(ee);
239 ecore_evas_shutdown(); 226 ecore_evas_shutdown();
240 edje_shutdown(); 227 edje_shutdown();
241 228
242 return EXIT_SUCCESS; 229 return EXIT_SUCCESS;
243 230
244 free_prefix:
245 eina_prefix_free(pfx);
246 shutdown_edje: 231 shutdown_edje:
247 edje_shutdown(); 232 edje_shutdown();
248 shutdown_ecore_evas: 233 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-box2.c b/src/examples/edje/edje-box2.c
index 436b621..e2a172f 100644
--- a/src/examples/edje/edje-box2.c
+++ b/src/examples/edje/edje-box2.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <stdlib.h> 22#include <stdlib.h>
19#include <stdio.h> 23#include <stdio.h>
20#include <string.h> 24#include <string.h>
@@ -151,17 +155,15 @@ on_destroy(Ecore_Evas *ee EINA_UNUSED)
151} 155}
152 156
153int 157int
154main(int argc EINA_UNUSED, char *argv[]) 158main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
155{ 159{
156 char edje_file_path[PATH_MAX]; 160 const char *edje_file = PACKAGE_DATA_DIR"/box.edj";
157 const char *edje_file = "box.edj";
158 Ecore_Evas *ee; 161 Ecore_Evas *ee;
159 Evas *evas; 162 Evas *evas;
160 Evas_Object *bg; 163 Evas_Object *bg;
161 Evas_Object *edje_obj; 164 Evas_Object *edje_obj;
162 Evas_Object *last; 165 Evas_Object *last;
163 Evas_Object *o; 166 Evas_Object *o;
164 Eina_Prefix *pfx;
165 int w; 167 int w;
166 int h; 168 int h;
167 int i; 169 int i;
@@ -172,22 +174,10 @@ main(int argc EINA_UNUSED, char *argv[])
172 if (!edje_init()) 174 if (!edje_init())
173 goto shutdown_ecore_evas; 175 goto shutdown_ecore_evas;
174 176
175 pfx = eina_prefix_new(argv[0], main,
176 "EDJE_EXAMPLES",
177 "edje/examples",
178 edje_file,
179 PACKAGE_BIN_DIR,
180 PACKAGE_LIB_DIR,
181 PACKAGE_DATA_DIR,
182 PACKAGE_DATA_DIR);
183 if (!pfx)
184 goto shutdown_edje;
185
186 /* this will give you a window with an Evas canvas under the first 177 /* this will give you a window with an Evas canvas under the first
187 * engine available */ 178 * engine available */
188 ee = ecore_evas_new(NULL, 0, 0, 640, 480, NULL); 179 ee = ecore_evas_new(NULL, 0, 0, 640, 480, NULL);
189 if (!ee) 180 if (!ee) goto shutdown_edje;
190 goto free_prefix;
191 181
192 ecore_evas_callback_resize_set(ee, on_resize); 182 ecore_evas_callback_resize_set(ee, on_resize);
193 ecore_evas_callback_destroy_set(ee, on_destroy); 183 ecore_evas_callback_destroy_set(ee, on_destroy);
@@ -203,9 +193,7 @@ main(int argc EINA_UNUSED, char *argv[])
203 193
204 edje_box_layout_register("custom_layout", custom_layout, NULL, NULL, NULL, NULL); 194 edje_box_layout_register("custom_layout", custom_layout, NULL, NULL, NULL, NULL);
205 195
206 snprintf(edje_file_path, sizeof(edje_file_path), 196 edje_obj = box_new(ee, edje_file, "box", 0, 0, w, h);
207 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
208 edje_obj = box_new(ee, edje_file_path, "box", 0, 0, w, h);
209 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, on_keydown, edje_obj); 197 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, on_keydown, edje_obj);
210 198
211 for (i = 1; i <= 5; i++) 199 for (i = 1; i <= 5; i++)
@@ -229,15 +217,12 @@ main(int argc EINA_UNUSED, char *argv[])
229 217
230 ecore_main_loop_begin(); 218 ecore_main_loop_begin();
231 219
232 eina_prefix_free(pfx);
233 ecore_evas_free(ee); 220 ecore_evas_free(ee);
234 ecore_evas_shutdown(); 221 ecore_evas_shutdown();
235 edje_shutdown(); 222 edje_shutdown();
236 223
237 return EXIT_SUCCESS; 224 return EXIT_SUCCESS;
238 225
239 free_prefix:
240 eina_prefix_free(pfx);
241 shutdown_edje: 226 shutdown_edje:
242 edje_shutdown(); 227 edje_shutdown();
243 shutdown_ecore_evas: 228 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-codegen-example.c b/src/examples/edje/edje-codegen-example.c
index 6eff233..910fd54 100644
--- a/src/examples/edje/edje-codegen-example.c
+++ b/src/examples/edje/edje-codegen-example.c
@@ -29,6 +29,10 @@
29# define EINA_UNUSED 29# define EINA_UNUSED
30#endif 30#endif
31 31
32#ifndef PACKAGE_DATA_DIR
33#define PACKAGE_DATA_DIR "."
34#endif
35
32#include "codegen_example_generated.h" 36#include "codegen_example_generated.h"
33 37
34#include <Ecore.h> 38#include <Ecore.h>
@@ -39,7 +43,7 @@
39#define HEIGHT (800) 43#define HEIGHT (800)
40 44
41static void 45static void
42_on_delete(Ecore_Evas *ee) 46_on_delete(Ecore_Evas *ee EINA_UNUSED)
43{ 47{
44 ecore_main_loop_quit(); 48 ecore_main_loop_quit();
45} 49}
@@ -56,11 +60,10 @@ _columns_rows_print(Evas_Object *edje_obj)
56} 60}
57 61
58static void 62static void
59_on_mouse_over(void *data, Evas_Object *obj, const char *emission, 63_on_mouse_over(void *data EINA_UNUSED, Evas_Object *obj, const char *emission,
60 const char *source) 64 const char *source)
61{ 65{
62 Evas_Object *rect; 66 Evas_Object *rect;
63 Eina_Bool disabled;
64 static int i = 0; 67 static int i = 0;
65 68
66 printf("Mouse over, source: %s - emission: %s\n", 69 printf("Mouse over, source: %s - emission: %s\n",
@@ -72,7 +75,7 @@ _on_mouse_over(void *data, Evas_Object *obj, const char *emission,
72 } 75 }
73 if (i++ == 5) 76 if (i++ == 5)
74 { 77 {
75 Evas_Object *rect = codegen_example_part_two_get(obj); 78 rect = codegen_example_part_two_get(obj);
76 evas_object_color_set(rect, 0, 255, 0, 255); 79 evas_object_color_set(rect, 0, 255, 0, 255);
77 codegen_example_part_below_over_callback_del_full(obj,_on_mouse_over, 80 codegen_example_part_below_over_callback_del_full(obj,_on_mouse_over,
78 NULL); 81 NULL);
@@ -97,17 +100,14 @@ _rect_create(Evas *e, unsigned char r, unsigned char g, unsigned char b)
97} 100}
98 101
99int 102int
100main(int argc, char *argv[]) 103main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
101{ 104{
102 char edje_file_path[PATH_MAX]; 105 const char *edje_file = PACKAGE_DATA_DIR"/codegen.edj";
103 const char *edje_file = "codegen.edj", *aux;
104 Ecore_Evas *ee; 106 Ecore_Evas *ee;
105 Evas *evas; 107 Evas *evas;
106 Evas_Object *bg; 108 Evas_Object *bg;
107 Evas_Object *edje_obj; 109 Evas_Object *edje_obj;
108 Evas_Object *red_rect, *yellow_rect, *blue_rect, *rects[4]; 110 Evas_Object *red_rect, *yellow_rect, *blue_rect, *rects[4];
109 Eina_Prefix *pfx;
110 Eina_Bool disabled;
111 111
112 if (!ecore_evas_init()) 112 if (!ecore_evas_init())
113 return EXIT_FAILURE; 113 return EXIT_FAILURE;
@@ -115,25 +115,10 @@ main(int argc, char *argv[])
115 if (!edje_init()) 115 if (!edje_init())
116 goto shutdown_ecore_evas; 116 goto shutdown_ecore_evas;
117 117
118 pfx = eina_prefix_new(argv[0], main,
119 "EDJE_EXAMPLES",
120 "edje/examples",
121 edje_file,
122 PACKAGE_BIN_DIR,
123 PACKAGE_LIB_DIR,
124 PACKAGE_DATA_DIR,
125 PACKAGE_DATA_DIR);
126 if (!pfx)
127 goto shutdown_edje;
128
129 snprintf(edje_file_path, sizeof(edje_file_path),
130 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
131
132 /* this will give you a window with an Evas canvas under the first 118 /* this will give you a window with an Evas canvas under the first
133 * engine available */ 119 * engine available */
134 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 120 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
135 if (!ee) 121 if (!ee) goto shutdown_edje;
136 goto free_prefix;
137 122
138 ecore_evas_callback_delete_request_set(ee, _on_delete); 123 ecore_evas_callback_delete_request_set(ee, _on_delete);
139 ecore_evas_title_set(ee, "Edje codegen Example"); 124 ecore_evas_title_set(ee, "Edje codegen Example");
@@ -145,7 +130,7 @@ main(int argc, char *argv[])
145 evas_object_resize(bg, WIDTH, HEIGHT); /* covers full canvas */ 130 evas_object_resize(bg, WIDTH, HEIGHT); /* covers full canvas */
146 ecore_evas_object_associate(ee, bg, ECORE_EVAS_OBJECT_ASSOCIATE_BASE); 131 ecore_evas_object_associate(ee, bg, ECORE_EVAS_OBJECT_ASSOCIATE_BASE);
147 132
148 edje_obj = codegen_example_object_add(evas, edje_file_path); 133 edje_obj = codegen_example_object_add(evas, edje_file);
149 evas_object_resize(edje_obj, WIDTH, HEIGHT); 134 evas_object_resize(edje_obj, WIDTH, HEIGHT);
150 evas_object_show(edje_obj); 135 evas_object_show(edje_obj);
151 136
@@ -184,15 +169,12 @@ main(int argc, char *argv[])
184 169
185 ecore_main_loop_begin(); 170 ecore_main_loop_begin();
186 171
187 eina_prefix_free(pfx);
188 ecore_evas_free(ee); 172 ecore_evas_free(ee);
189 ecore_evas_shutdown(); 173 ecore_evas_shutdown();
190 edje_shutdown(); 174 edje_shutdown();
191 175
192 return EXIT_SUCCESS; 176 return EXIT_SUCCESS;
193 177
194 free_prefix:
195 eina_prefix_free(pfx);
196 shutdown_edje: 178 shutdown_edje:
197 edje_shutdown(); 179 edje_shutdown();
198 shutdown_ecore_evas: 180 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-color-class.c b/src/examples/edje/edje-color-class.c
index 883e258..a4a5a1e 100644
--- a/src/examples/edje/edje-color-class.c
+++ b/src/examples/edje/edje-color-class.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -210,9 +214,7 @@ _create_windows(const char *edje_file_path)
210int 214int
211main(int argc, char *argv[]) 215main(int argc, char *argv[])
212{ 216{
213 char edje_file_path[PATH_MAX]; 217 const char *edje_file = PACKAGE_DATA_DIR"/color-class.edj";
214 const char *edje_file = "color-class.edj";
215 Eina_Prefix *pfx;
216 color c1, c2, c3; 218 color c1, c2, c3;
217 int i; 219 int i;
218 220
@@ -242,21 +244,7 @@ main(int argc, char *argv[])
242 if (!edje_init()) 244 if (!edje_init())
243 goto shutdown_ecore_evas; 245 goto shutdown_ecore_evas;
244 246
245 pfx = eina_prefix_new(argv[0], main, 247 if (!_create_windows(edje_file)) goto shutdown_edje;
246 "EDJE_EXAMPLES",
247 "edje/examples",
248 edje_file,
249 PACKAGE_BIN_DIR,
250 PACKAGE_LIB_DIR,
251 PACKAGE_DATA_DIR,
252 PACKAGE_DATA_DIR);
253 if (!pfx)
254 goto shutdown_edje;
255
256 snprintf(edje_file_path, sizeof(edje_file_path),
257 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
258 if (!_create_windows(edje_file_path))
259 goto free_prefix;
260 248
261 edje_color_class_set(argv[1], /* class name */ 249 edje_color_class_set(argv[1], /* class name */
262 c1[0], c1[1], c1[2], c1[3], /* Object color */ 250 c1[0], c1[1], c1[2], c1[3], /* Object color */
@@ -277,15 +265,12 @@ main(int argc, char *argv[])
277 265
278 ecore_main_loop_begin(); 266 ecore_main_loop_begin();
279 267
280 eina_prefix_free(pfx);
281 ecore_evas_free(ee1); 268 ecore_evas_free(ee1);
282 ecore_evas_shutdown(); 269 ecore_evas_shutdown();
283 edje_shutdown(); 270 edje_shutdown();
284 271
285 return EXIT_SUCCESS; 272 return EXIT_SUCCESS;
286 273
287 free_prefix:
288 eina_prefix_free(pfx);
289 shutdown_edje: 274 shutdown_edje:
290 edje_shutdown(); 275 edje_shutdown();
291 shutdown_ecore_evas: 276 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-drag.c b/src/examples/edje/edje-drag.c
index 6b3f6b2..da7504f 100644
--- a/src/examples/edje/edje-drag.c
+++ b/src/examples/edje/edje-drag.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -118,15 +122,13 @@ _on_knob_moved(void *data EINA_UNUSED, Evas_Object *o, const char *emission EINA
118} 122}
119 123
120int 124int
121main(int argc EINA_UNUSED, char *argv[]) 125main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
122{ 126{
123 char edje_file_path[PATH_MAX]; 127 const char *edje_file = PACKAGE_DATA_DIR"/drag.edj";
124 const char *edje_file = "drag.edj";
125 Ecore_Evas *ee; 128 Ecore_Evas *ee;
126 Evas *evas; 129 Evas *evas;
127 Evas_Object *bg; 130 Evas_Object *bg;
128 Evas_Object *edje_obj; 131 Evas_Object *edje_obj;
129 Eina_Prefix *pfx;
130 132
131 if (!ecore_evas_init()) 133 if (!ecore_evas_init())
132 return EXIT_FAILURE; 134 return EXIT_FAILURE;
@@ -134,22 +136,10 @@ main(int argc EINA_UNUSED, char *argv[])
134 if (!edje_init()) 136 if (!edje_init())
135 goto shutdown_ecore_evas; 137 goto shutdown_ecore_evas;
136 138
137 pfx = eina_prefix_new(argv[0], main,
138 "EDJE_EXAMPLES",
139 "edje/examples",
140 edje_file,
141 PACKAGE_BIN_DIR,
142 PACKAGE_LIB_DIR,
143 PACKAGE_DATA_DIR,
144 PACKAGE_DATA_DIR);
145 if (!pfx)
146 goto shutdown_edje;
147
148 /* this will give you a window with an Evas canvas under the first 139 /* this will give you a window with an Evas canvas under the first
149 * engine available */ 140 * engine available */
150 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 141 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
151 if (!ee) 142 if (!ee) goto shutdown_edje;
152 goto free_prefix;
153 143
154 ecore_evas_callback_destroy_set(ee, _on_destroy); 144 ecore_evas_callback_destroy_set(ee, _on_destroy);
155 ecore_evas_callback_resize_set(ee, _on_canvas_resize); 145 ecore_evas_callback_resize_set(ee, _on_canvas_resize);
@@ -168,9 +158,7 @@ main(int argc EINA_UNUSED, char *argv[])
168 158
169 edje_obj = edje_object_add(evas); 159 edje_obj = edje_object_add(evas);
170 160
171 snprintf(edje_file_path, sizeof(edje_file_path), 161 edje_object_file_set(edje_obj, edje_file, "example/group");
172 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
173 edje_object_file_set(edje_obj, edje_file_path, "example/group");
174 evas_object_move(edje_obj, 0, 0); 162 evas_object_move(edje_obj, 0, 0);
175 evas_object_resize(edje_obj, WIDTH, HEIGHT); 163 evas_object_resize(edje_obj, WIDTH, HEIGHT);
176 evas_object_show(edje_obj); 164 evas_object_show(edje_obj);
@@ -192,15 +180,12 @@ main(int argc EINA_UNUSED, char *argv[])
192 180
193 ecore_main_loop_begin(); 181 ecore_main_loop_begin();
194 182
195 eina_prefix_free(pfx);
196 ecore_evas_free(ee); 183 ecore_evas_free(ee);
197 ecore_evas_shutdown(); 184 ecore_evas_shutdown();
198 edje_shutdown(); 185 edje_shutdown();
199 186
200 return EXIT_SUCCESS; 187 return EXIT_SUCCESS;
201 188
202 free_prefix:
203 eina_prefix_free(pfx);
204 shutdown_edje: 189 shutdown_edje:
205 edje_shutdown(); 190 edje_shutdown();
206 shutdown_ecore_evas: 191 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-multisense.c b/src/examples/edje/edje-multisense.c
index c66c568..5de3ae8 100644
--- a/src/examples/edje/edje-multisense.c
+++ b/src/examples/edje/edje-multisense.c
@@ -5,7 +5,7 @@
5 * buffer one) and multisense support ine edje. See stdout/stderr for output. 5 * buffer one) and multisense support ine edje. See stdout/stderr for output.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -o edje-multisense edje-multisense.c `pkg-config --libs --cflags eina evas ecore ecore-evas edje` 8 * edje_cc multisense.edc && gcc -o edje-multisense edje-multisense.c `pkg-config --libs --cflags eina evas ecore ecore-evas edje`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
@@ -15,6 +15,10 @@
15#include <Ecore_Evas.h> 15#include <Ecore_Evas.h>
16#include <Edje.h> 16#include <Edje.h>
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#define WIDTH 300 22#define WIDTH 300
19#define HEIGHT 300 23#define HEIGHT 300
20 24
@@ -29,7 +33,8 @@ static Evas_Object *create_my_group(Evas *canvas)
29 return NULL; 33 return NULL;
30 } 34 }
31 35
32 if (!edje_object_file_set(edje, "multisense.edj", "example_group")) 36 if (!edje_object_file_set(edje, PACKAGE_DATA_DIR"/multisense.edj",
37 "example_group"))
33 { 38 {
34 int err = edje_object_load_error_get(edje); 39 int err = edje_object_load_error_get(edje);
35 const char *errmsg = edje_load_error_str(err); 40 const char *errmsg = edje_load_error_str(err);
diff --git a/src/examples/edje/edje-perspective.c b/src/examples/edje/edje-perspective.c
index dbb3e22..dc8c248 100644
--- a/src/examples/edje/edje-perspective.c
+++ b/src/examples/edje/edje-perspective.c
@@ -1,11 +1,11 @@
1/** 1/**
2 * Simple Edje example illustrating drag functions. 2 * Simple Edje example illustrating perspective functions.
3 * 3 *
4 * You'll need at least one Evas engine built for it (excluding the 4 * You'll need at least one Evas engine built for it (excluding the
5 * buffer one). See stdout/stderr for output. 5 * buffer one). See stdout/stderr for output.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * edje_cc drag.edc && gcc -o drag-box drag-box.c `pkg-config --libs --cflags evas ecore ecore-evas edje` 8 * edje_cc perspective.edc && gcc -o edje-perspective edje-perspective.c `pkg-config --libs --cflags evas ecore ecore-evas edje`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -159,14 +163,12 @@ _animation_end_cb(void *data, Evas_Object *o EINA_UNUSED, const char *emission E
159} 163}
160 164
161int 165int
162main(int argc EINA_UNUSED, char *argv[]) 166main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
163{ 167{
164 char edje_file_path[PATH_MAX]; 168 const char *edje_file = PACKAGE_DATA_DIR"/perspective.edj";
165 const char *edje_file = "perspective.edj";
166 struct _App app; 169 struct _App app;
167 Ecore_Evas *ee; 170 Ecore_Evas *ee;
168 Evas *evas; 171 Evas *evas;
169 Eina_Prefix *pfx;
170 172
171 if (!ecore_evas_init()) 173 if (!ecore_evas_init())
172 return EXIT_FAILURE; 174 return EXIT_FAILURE;
@@ -174,17 +176,6 @@ main(int argc EINA_UNUSED, char *argv[])
174 if (!edje_init()) 176 if (!edje_init())
175 goto shutdown_ecore_evas; 177 goto shutdown_ecore_evas;
176 178
177 pfx = eina_prefix_new(argv[0], main,
178 "EDJE_EXAMPLES",
179 "edje/examples",
180 edje_file,
181 PACKAGE_BIN_DIR,
182 PACKAGE_LIB_DIR,
183 PACKAGE_DATA_DIR,
184 PACKAGE_DATA_DIR);
185 if (!pfx)
186 goto shutdown_edje;
187
188 edje_frametime_set(1.0 / 60.0); 179 edje_frametime_set(1.0 / 60.0);
189 180
190 /* this will give you a window with an Evas canvas under the first 181 /* this will give you a window with an Evas canvas under the first
@@ -195,8 +186,7 @@ main(int argc EINA_UNUSED, char *argv[])
195 app.focal = 50; 186 app.focal = 50;
196 187
197 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 188 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
198 if (!ee) 189 if (!ee) goto shutdown_edje;
199 goto free_prefix;
200 190
201 ecore_evas_callback_destroy_set(ee, _on_destroy); 191 ecore_evas_callback_destroy_set(ee, _on_destroy);
202 ecore_evas_callback_resize_set(ee, _on_canvas_resize); 192 ecore_evas_callback_resize_set(ee, _on_canvas_resize);
@@ -216,9 +206,7 @@ main(int argc EINA_UNUSED, char *argv[])
216 206
217 app.edje_obj = edje_object_add(evas); 207 app.edje_obj = edje_object_add(evas);
218 208
219 snprintf(edje_file_path, sizeof(edje_file_path), 209 edje_object_file_set(app.edje_obj, edje_file, "example/group");
220 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
221 edje_object_file_set(app.edje_obj, edje_file_path, "example/group");
222 evas_object_move(app.edje_obj, 0, 0); 210 evas_object_move(app.edje_obj, 0, 0);
223 evas_object_resize(app.edje_obj, WIDTH, HEIGHT); 211 evas_object_resize(app.edje_obj, WIDTH, HEIGHT);
224 evas_object_show(app.edje_obj); 212 evas_object_show(app.edje_obj);
@@ -235,15 +223,12 @@ main(int argc EINA_UNUSED, char *argv[])
235 223
236 ecore_main_loop_begin(); 224 ecore_main_loop_begin();
237 225
238 eina_prefix_free(pfx);
239 ecore_evas_free(ee); 226 ecore_evas_free(ee);
240 ecore_evas_shutdown(); 227 ecore_evas_shutdown();
241 edje_shutdown(); 228 edje_shutdown();
242 229
243 return EXIT_SUCCESS; 230 return EXIT_SUCCESS;
244 231
245 free_prefix:
246 eina_prefix_free(pfx);
247 shutdown_edje: 232 shutdown_edje:
248 edje_shutdown(); 233 edje_shutdown();
249 shutdown_ecore_evas: 234 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-signals-messages.c b/src/examples/edje/edje-signals-messages.c
index 380d1e5..b9b5f34 100644
--- a/src/examples/edje/edje-signals-messages.c
+++ b/src/examples/edje/edje-signals-messages.c
@@ -5,7 +5,7 @@
5 * buffer one). See stdout/stderr for output. 5 * buffer one). See stdout/stderr for output.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -o edje-signals-messages edje-signals-messages.c `pkg-config --libs --cflags evas ecore ecore-evas edje` 8 * edje_cc signals-messages.edc && gcc -o edje-signals-messages edje-signals-messages.c `pkg-config --libs --cflags evas ecore ecore-evas edje`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
@@ -16,6 +16,10 @@
16#define EINA_UNUSED 16#define EINA_UNUSED
17#endif 17#endif
18 18
19#ifndef PACKAGE_DATA_DIR
20#define PACKAGE_DATA_DIR "."
21#endif
22
19#include <Ecore.h> 23#include <Ecore.h>
20#include <Ecore_Evas.h> 24#include <Ecore_Evas.h>
21#include <Edje.h> 25#include <Edje.h>
@@ -138,17 +142,15 @@ _message_handle(void *data EINA_UNUSED,
138} 142}
139 143
140int 144int
141main(int argc EINA_UNUSED, char *argv[]) 145main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
142{ 146{
143 char border_img_path[PATH_MAX]; 147 const char *img_file = PACKAGE_DATA_DIR"/red.png";
144 char edje_file_path[PATH_MAX]; 148 const char *edje_file = PACKAGE_DATA_DIR"/signals-messages.edj";
145 const char *edje_file = "signals-messages.edj";
146 Ecore_Evas *ee; 149 Ecore_Evas *ee;
147 Evas *evas; 150 Evas *evas;
148 Evas_Object *bg; 151 Evas_Object *bg;
149 Evas_Object *edje_obj; 152 Evas_Object *edje_obj;
150 Evas_Object *border; 153 Evas_Object *border;
151 Eina_Prefix *pfx;
152 154
153 if (!ecore_evas_init()) 155 if (!ecore_evas_init())
154 return EXIT_FAILURE; 156 return EXIT_FAILURE;
@@ -156,22 +158,10 @@ main(int argc EINA_UNUSED, char *argv[])
156 if (!edje_init()) 158 if (!edje_init())
157 goto shutdown_ecore_evas; 159 goto shutdown_ecore_evas;
158 160
159 pfx = eina_prefix_new(argv[0], main,
160 "EDJE_EXAMPLES",
161 "edje/examples",
162 edje_file,
163 PACKAGE_BIN_DIR,
164 PACKAGE_LIB_DIR,
165 PACKAGE_DATA_DIR,
166 PACKAGE_DATA_DIR);
167 if (!pfx)
168 goto shutdown_edje;
169
170 /* this will give you a window with an Evas canvas under the first 161 /* this will give you a window with an Evas canvas under the first
171 * engine available */ 162 * engine available */
172 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 163 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
173 if (!ee) 164 if (!ee) goto shutdown_edje;
174 goto free_prefix;
175 165
176 ecore_evas_callback_delete_request_set(ee, _on_delete); 166 ecore_evas_callback_delete_request_set(ee, _on_delete);
177 ecore_evas_title_set(ee, "Edje Basics Example"); 167 ecore_evas_title_set(ee, "Edje Basics Example");
@@ -188,9 +178,7 @@ main(int argc EINA_UNUSED, char *argv[])
188 178
189 edje_obj = edje_object_add(evas); 179 edje_obj = edje_object_add(evas);
190 180
191 snprintf(edje_file_path, sizeof(edje_file_path), 181 if (!edje_object_file_set(edje_obj, edje_file, "example_group"))
192 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
193 if (!edje_object_file_set(edje_obj, edje_file_path, "example_group"))
194 { 182 {
195 int err = edje_object_load_error_get(edje_obj); 183 int err = edje_object_load_error_get(edje_obj);
196 const char *errmsg = edje_load_error_str(err); 184 const char *errmsg = edje_load_error_str(err);
@@ -198,7 +186,7 @@ main(int argc EINA_UNUSED, char *argv[])
198 "signals-messages.edj: %s\n", errmsg); 186 "signals-messages.edj: %s\n", errmsg);
199 187
200 evas_object_del(edje_obj); 188 evas_object_del(edje_obj);
201 goto free_prefix; 189 goto shutdown_edje;
202 } 190 }
203 191
204 edje_object_signal_callback_add(edje_obj, "mouse,wheel,*", "part_left", 192 edje_object_signal_callback_add(edje_obj, "mouse,wheel,*", "part_left",
@@ -215,13 +203,10 @@ main(int argc EINA_UNUSED, char *argv[])
215 203
216 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, edje_obj); 204 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, edje_obj);
217 205
218 snprintf(border_img_path, sizeof(border_img_path),
219 "%s/edje/examples/red.png", eina_prefix_data_get(pfx));
220
221 /* this is a border around the Edje object above, here just to 206 /* this is a border around the Edje object above, here just to
222 * emphasize its geometry */ 207 * emphasize its geometry */
223 border = evas_object_image_filled_add(evas); 208 border = evas_object_image_filled_add(evas);
224 evas_object_image_file_set(border, border_img_path, NULL); 209 evas_object_image_file_set(border, img_file, NULL);
225 evas_object_image_border_set(border, 2, 2, 2, 2); 210 evas_object_image_border_set(border, 2, 2, 2, 2);
226 evas_object_image_border_center_fill_set(border, EVAS_BORDER_FILL_NONE); 211 evas_object_image_border_center_fill_set(border, EVAS_BORDER_FILL_NONE);
227 212
@@ -236,15 +221,12 @@ main(int argc EINA_UNUSED, char *argv[])
236 221
237 ecore_main_loop_begin(); 222 ecore_main_loop_begin();
238 223
239 eina_prefix_free(pfx);
240 ecore_evas_free(ee); 224 ecore_evas_free(ee);
241 ecore_evas_shutdown(); 225 ecore_evas_shutdown();
242 edje_shutdown(); 226 edje_shutdown();
243 227
244 return EXIT_SUCCESS; 228 return EXIT_SUCCESS;
245 229
246 free_prefix:
247 eina_prefix_free(pfx);
248 shutdown_edje: 230 shutdown_edje:
249 edje_shutdown(); 231 edje_shutdown();
250 shutdown_ecore_evas: 232 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-swallow.c b/src/examples/edje/edje-swallow.c
index 4769cc1..2b93ce0 100644
--- a/src/examples/edje/edje-swallow.c
+++ b/src/examples/edje/edje-swallow.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -43,17 +47,15 @@ _on_canvas_resize(Ecore_Evas *ee)
43} 47}
44 48
45int 49int
46main(int argc EINA_UNUSED, char *argv[]) 50main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
47{ 51{
48 char edje_file_path[PATH_MAX]; 52 const char *edje_file = PACKAGE_DATA_DIR"/swallow.edj";
49 const char *edje_file = "swallow.edj";
50 Ecore_Evas *ee; 53 Ecore_Evas *ee;
51 Evas *evas; 54 Evas *evas;
52 Evas_Object *bg; 55 Evas_Object *bg;
53 Evas_Object *rect; 56 Evas_Object *rect;
54 Evas_Object *obj; 57 Evas_Object *obj;
55 Evas_Object *edje_obj; 58 Evas_Object *edje_obj;
56 Eina_Prefix *pfx;
57 59
58 if (!ecore_evas_init()) 60 if (!ecore_evas_init())
59 return EXIT_FAILURE; 61 return EXIT_FAILURE;
@@ -61,22 +63,10 @@ main(int argc EINA_UNUSED, char *argv[])
61 if (!edje_init()) 63 if (!edje_init())
62 goto shutdown_ecore_evas; 64 goto shutdown_ecore_evas;
63 65
64 pfx = eina_prefix_new(argv[0], main,
65 "EDJE_EXAMPLES",
66 "edje/examples",
67 edje_file,
68 PACKAGE_BIN_DIR,
69 PACKAGE_LIB_DIR,
70 PACKAGE_DATA_DIR,
71 PACKAGE_DATA_DIR);
72 if (!pfx)
73 goto shutdown_edje;
74
75 /* this will give you a window with an Evas canvas under the first 66 /* this will give you a window with an Evas canvas under the first
76 * engine available */ 67 * engine available */
77 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 68 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
78 if (!ee) 69 if (!ee) goto shutdown_edje;
79 goto free_prefix;
80 70
81 ecore_evas_callback_delete_request_set(ee, _on_delete); 71 ecore_evas_callback_delete_request_set(ee, _on_delete);
82 ecore_evas_callback_resize_set(ee, _on_canvas_resize); 72 ecore_evas_callback_resize_set(ee, _on_canvas_resize);
@@ -93,9 +83,7 @@ main(int argc EINA_UNUSED, char *argv[])
93 83
94 edje_obj = edje_object_add(evas); 84 edje_obj = edje_object_add(evas);
95 85
96 snprintf(edje_file_path, sizeof(edje_file_path), 86 edje_object_file_set(edje_obj, edje_file, "example_group");
97 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
98 edje_object_file_set(edje_obj, edje_file_path, "example_group");
99 evas_object_move(edje_obj, 20, 20); 87 evas_object_move(edje_obj, 20, 20);
100 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40); 88 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40);
101 evas_object_show(edje_obj); 89 evas_object_show(edje_obj);
@@ -112,15 +100,12 @@ main(int argc EINA_UNUSED, char *argv[])
112 100
113 ecore_main_loop_begin(); 101 ecore_main_loop_begin();
114 102
115 eina_prefix_free(pfx);
116 ecore_evas_free(ee); 103 ecore_evas_free(ee);
117 ecore_evas_shutdown(); 104 ecore_evas_shutdown();
118 edje_shutdown(); 105 edje_shutdown();
119 106
120 return EXIT_SUCCESS; 107 return EXIT_SUCCESS;
121 108
122 free_prefix:
123 eina_prefix_free(pfx);
124 shutdown_edje: 109 shutdown_edje:
125 edje_shutdown(); 110 edje_shutdown();
126 shutdown_ecore_evas: 111 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-swallow2.c b/src/examples/edje/edje-swallow2.c
index 884578c..fe3f956 100644
--- a/src/examples/edje/edje-swallow2.c
+++ b/src/examples/edje/edje-swallow2.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -29,19 +33,16 @@ _on_delete(Ecore_Evas *ee EINA_UNUSED)
29} 33}
30 34
31int 35int
32main(int argc EINA_UNUSED, char *argv[]) 36main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
33{ 37{
34 char edje_file_path[PATH_MAX]; 38 const char *edje_file = PACKAGE_DATA_DIR"/swallow.edj";
35 char img_file_path[PATH_MAX]; 39 const char *img_file = PACKAGE_DATA_DIR"/bubble.png";
36 const char *edje_file = "swallow.edj";
37 const char *img_file = "bubble.png";
38 Ecore_Evas *ee; 40 Ecore_Evas *ee;
39 Evas *evas; 41 Evas *evas;
40 Evas_Object *bg; 42 Evas_Object *bg;
41 Evas_Object *img; 43 Evas_Object *img;
42 Evas_Object *obj; 44 Evas_Object *obj;
43 Evas_Object *edje_obj; 45 Evas_Object *edje_obj;
44 Eina_Prefix *pfx;
45 Evas_Load_Error err; 46 Evas_Load_Error err;
46 47
47 if (!ecore_evas_init()) 48 if (!ecore_evas_init())
@@ -50,22 +51,10 @@ main(int argc EINA_UNUSED, char *argv[])
50 if (!edje_init()) 51 if (!edje_init())
51 goto shutdown_ecore_evas; 52 goto shutdown_ecore_evas;
52 53
53 pfx = eina_prefix_new(argv[0], main,
54 "EDJE_EXAMPLES",
55 "edje/examples",
56 edje_file,
57 PACKAGE_BIN_DIR,
58 PACKAGE_LIB_DIR,
59 PACKAGE_DATA_DIR,
60 PACKAGE_DATA_DIR);
61 if (!pfx)
62 goto shutdown_edje;
63
64 /* this will give you a window with an Evas canvas under the first 54 /* this will give you a window with an Evas canvas under the first
65 * engine available */ 55 * engine available */
66 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 56 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
67 if (!ee) 57 if (!ee) goto shutdown_edje;
68 goto free_prefix;
69 58
70 ecore_evas_callback_delete_request_set(ee, _on_delete); 59 ecore_evas_callback_delete_request_set(ee, _on_delete);
71 60
@@ -84,26 +73,21 @@ main(int argc EINA_UNUSED, char *argv[])
84 73
85 edje_obj = edje_object_add(evas); 74 edje_obj = edje_object_add(evas);
86 75
87 snprintf(edje_file_path, sizeof(edje_file_path), 76 edje_object_file_set(edje_obj, edje_file, "example_group");
88 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
89 edje_object_file_set(edje_obj, edje_file_path, "example_group");
90 evas_object_move(edje_obj, 20, 20); 77 evas_object_move(edje_obj, 20, 20);
91 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40); 78 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40);
92 evas_object_show(edje_obj); 79 evas_object_show(edje_obj);
93 80
94 snprintf(img_file_path, sizeof(edje_file_path),
95 "%s/examples/%s", eina_prefix_data_get(pfx), img_file);
96
97 img = evas_object_image_filled_add(evas); 81 img = evas_object_image_filled_add(evas);
98 evas_object_image_file_set(img, img_file_path, NULL); 82 evas_object_image_file_set(img, img_file, NULL);
99 83
100 err = evas_object_image_load_error_get(img); 84 err = evas_object_image_load_error_get(img);
101 85
102 if (err != EVAS_LOAD_ERROR_NONE) 86 if (err != EVAS_LOAD_ERROR_NONE)
103 { 87 {
104 fprintf(stderr, "could not load image '%s'. error string is \"%s\"\n", 88 fprintf(stderr, "could not load image '%s'. error string is \"%s\"\n",
105 img_file_path, evas_load_error_str(err)); 89 img_file, evas_load_error_str(err));
106 goto free_prefix; 90 goto shutdown_edje;
107 } 91 }
108 92
109 edje_object_part_swallow(edje_obj, "part_one", img); 93 edje_object_part_swallow(edje_obj, "part_one", img);
@@ -117,15 +101,12 @@ main(int argc EINA_UNUSED, char *argv[])
117 101
118 ecore_main_loop_begin(); 102 ecore_main_loop_begin();
119 103
120 eina_prefix_free(pfx);
121 ecore_evas_free(ee); 104 ecore_evas_free(ee);
122 ecore_evas_shutdown(); 105 ecore_evas_shutdown();
123 edje_shutdown(); 106 edje_shutdown();
124 107
125 return EXIT_SUCCESS; 108 return EXIT_SUCCESS;
126 109
127 free_prefix:
128 eina_prefix_free(pfx);
129 shutdown_edje: 110 shutdown_edje:
130 edje_shutdown(); 111 edje_shutdown();
131 shutdown_ecore_evas: 112 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-table.c b/src/examples/edje/edje-table.c
index 51042d2..965a0f4 100644
--- a/src/examples/edje/edje-table.c
+++ b/src/examples/edje/edje-table.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -103,16 +107,14 @@ _rects_create(Evas *evas, Evas_Object **rects, Evas_Object *edje_obj)
103} 107}
104 108
105int 109int
106main(int argc EINA_UNUSED, char *argv[]) 110main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
107{ 111{
108 char edje_file_path[PATH_MAX]; 112 const char *edje_file = PACKAGE_DATA_DIR"/table.edj";
109 const char *edje_file = "table.edj";
110 Ecore_Evas *ee; 113 Ecore_Evas *ee;
111 Evas *evas; 114 Evas *evas;
112 Evas_Object *bg; 115 Evas_Object *bg;
113 Evas_Object *edje_obj; 116 Evas_Object *edje_obj;
114 Evas_Object *rects[4]; 117 Evas_Object *rects[4];
115 Eina_Prefix *pfx;
116 118
117 if (!ecore_evas_init()) 119 if (!ecore_evas_init())
118 return EXIT_FAILURE; 120 return EXIT_FAILURE;
@@ -120,22 +122,10 @@ main(int argc EINA_UNUSED, char *argv[])
120 if (!edje_init()) 122 if (!edje_init())
121 goto shutdown_ecore_evas; 123 goto shutdown_ecore_evas;
122 124
123 pfx = eina_prefix_new(argv[0], main,
124 "EDJE_EXAMPLES",
125 "edje/examples",
126 edje_file,
127 PACKAGE_BIN_DIR,
128 PACKAGE_LIB_DIR,
129 PACKAGE_DATA_DIR,
130 PACKAGE_DATA_DIR);
131 if (!pfx)
132 goto shutdown_edje;
133
134 /* this will give you a window with an Evas canvas under the first 125 /* this will give you a window with an Evas canvas under the first
135 * engine available */ 126 * engine available */
136 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 127 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
137 if (!ee) 128 if (!ee) goto shutdown_edje;
138 goto free_prefix;
139 129
140 ecore_evas_callback_delete_request_set(ee, _on_delete); 130 ecore_evas_callback_delete_request_set(ee, _on_delete);
141 ecore_evas_callback_resize_set(ee, _on_canvas_resize); 131 ecore_evas_callback_resize_set(ee, _on_canvas_resize);
@@ -152,9 +142,7 @@ main(int argc EINA_UNUSED, char *argv[])
152 142
153 edje_obj = edje_object_add(evas); 143 edje_obj = edje_object_add(evas);
154 144
155 snprintf(edje_file_path, sizeof(edje_file_path), 145 edje_object_file_set(edje_obj, edje_file, "example_table");
156 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
157 edje_object_file_set(edje_obj, edje_file_path, "example_table");
158 evas_object_move(edje_obj, 0, 0); /* at canvas' origin */ 146 evas_object_move(edje_obj, 0, 0); /* at canvas' origin */
159 evas_object_resize(edje_obj, WIDTH, HEIGHT); 147 evas_object_resize(edje_obj, WIDTH, HEIGHT);
160 evas_object_show(edje_obj); 148 evas_object_show(edje_obj);
@@ -192,15 +180,12 @@ main(int argc EINA_UNUSED, char *argv[])
192 180
193 ecore_main_loop_begin(); 181 ecore_main_loop_begin();
194 182
195 eina_prefix_free(pfx);
196 ecore_evas_free(ee); 183 ecore_evas_free(ee);
197 ecore_evas_shutdown(); 184 ecore_evas_shutdown();
198 edje_shutdown(); 185 edje_shutdown();
199 186
200 return EXIT_SUCCESS; 187 return EXIT_SUCCESS;
201 188
202 free_prefix:
203 eina_prefix_free(pfx);
204 shutdown_edje: 189 shutdown_edje:
205 edje_shutdown(); 190 edje_shutdown();
206 shutdown_ecore_evas: 191 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje-text.c b/src/examples/edje/edje-text.c
index 5bfaaa4..8242ea9 100644
--- a/src/examples/edje/edje-text.c
+++ b/src/examples/edje/edje-text.c
@@ -15,6 +15,10 @@
15# define EINA_UNUSED 15# define EINA_UNUSED
16#endif 16#endif
17 17
18#ifndef PACKAGE_DATA_DIR
19#define PACKAGE_DATA_DIR "."
20#endif
21
18#include <Ecore.h> 22#include <Ecore.h>
19#include <Ecore_Evas.h> 23#include <Ecore_Evas.h>
20#include <Edje.h> 24#include <Edje.h>
@@ -35,15 +39,13 @@ _on_text_change(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
35} 39}
36 40
37int 41int
38main(int argc EINA_UNUSED, char *argv[]) 42main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
39{ 43{
40 char edje_file_path[PATH_MAX]; 44 const char *edje_file = PACKAGE_DATA_DIR"/text.edj";
41 const char *edje_file = "text.edj";
42 Ecore_Evas *ee; 45 Ecore_Evas *ee;
43 Evas *evas; 46 Evas *evas;
44 Evas_Object *bg; 47 Evas_Object *bg;
45 Evas_Object *edje_obj; 48 Evas_Object *edje_obj;
46 Eina_Prefix *pfx;
47 49
48 if (!ecore_evas_init()) 50 if (!ecore_evas_init())
49 return EXIT_FAILURE; 51 return EXIT_FAILURE;
@@ -51,22 +53,10 @@ main(int argc EINA_UNUSED, char *argv[])
51 if (!edje_init()) 53 if (!edje_init())
52 goto shutdown_ecore_evas; 54 goto shutdown_ecore_evas;
53 55
54 pfx = eina_prefix_new(argv[0], main,
55 "EDJE_EXAMPLES",
56 "edje/examples",
57 edje_file,
58 PACKAGE_BIN_DIR,
59 PACKAGE_LIB_DIR,
60 PACKAGE_DATA_DIR,
61 PACKAGE_DATA_DIR);
62 if (!pfx)
63 goto shutdown_edje;
64
65 /* this will give you a window with an Evas canvas under the first 56 /* this will give you a window with an Evas canvas under the first
66 * engine available */ 57 * engine available */
67 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 58 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
68 if (!ee) 59 if (!ee) goto shutdown_edje;
69 goto free_prefix;
70 60
71 ecore_evas_callback_delete_request_set(ee, _on_delete); 61 ecore_evas_callback_delete_request_set(ee, _on_delete);
72 ecore_evas_title_set(ee, "Edje text Example"); 62 ecore_evas_title_set(ee, "Edje text Example");
@@ -82,9 +72,7 @@ main(int argc EINA_UNUSED, char *argv[])
82 72
83 edje_obj = edje_object_add(evas); 73 edje_obj = edje_object_add(evas);
84 74
85 snprintf(edje_file_path, sizeof(edje_file_path), 75 edje_object_file_set(edje_obj, edje_file, "example_group");
86 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
87 edje_object_file_set(edje_obj, edje_file_path, "example_group");
88 evas_object_move(edje_obj, 20, 20); 76 evas_object_move(edje_obj, 20, 20);
89 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40); 77 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40);
90 evas_object_show(edje_obj); 78 evas_object_show(edje_obj);
@@ -103,15 +91,12 @@ main(int argc EINA_UNUSED, char *argv[])
103 91
104 ecore_main_loop_begin(); 92 ecore_main_loop_begin();
105 93
106 eina_prefix_free(pfx);
107 ecore_evas_free(ee); 94 ecore_evas_free(ee);
108 ecore_evas_shutdown(); 95 ecore_evas_shutdown();
109 edje_shutdown(); 96 edje_shutdown();
110 97
111 return EXIT_SUCCESS; 98 return EXIT_SUCCESS;
112 99
113 free_prefix:
114 eina_prefix_free(pfx);
115 shutdown_edje: 100 shutdown_edje:
116 edje_shutdown(); 101 edje_shutdown();
117 shutdown_ecore_evas: 102 shutdown_ecore_evas:
diff --git a/src/examples/edje/edje_example.c b/src/examples/edje/edje_example.c
index 103e867..a39a082 100644
--- a/src/examples/edje/edje_example.c
+++ b/src/examples/edje/edje_example.c
@@ -1,9 +1,16 @@
1//Compile with:
2// edje_cc edje_example.edc && gcc -o edje_example edje_example.c `pkg-config --libs --cflags ecore ecore-evas edje`
3
1#include <Eina.h> 4#include <Eina.h>
2#include <Evas.h> 5#include <Evas.h>
3#include <Ecore.h> 6#include <Ecore.h>
4#include <Ecore_Evas.h> 7#include <Ecore_Evas.h>
5#include <Edje.h> 8#include <Edje.h>
6 9
10#ifndef PACKAGE_DATA_DIR
11#define PACKAGE_DATA_DIR "."
12#endif
13
7#define WIDTH 320 14#define WIDTH 320
8#define HEIGHT 240 15#define HEIGHT 240
9 16
@@ -18,7 +25,8 @@ static Evas_Object *create_my_group(Evas *canvas, const char *text)
18 return NULL; 25 return NULL;
19 } 26 }
20 27
21 if (!edje_object_file_set(edje, "edje_example.edj", "my_group")) 28 if (!edje_object_file_set(edje, PACKAGE_DATA_DIR"/edje_example.edj",
29 "my_group"))
22 { 30 {
23 int err = edje_object_load_error_get(edje); 31 int err = edje_object_load_error_get(edje);
24 const char *errmsg = edje_load_error_str(err); 32 const char *errmsg = edje_load_error_str(err);
diff --git a/src/examples/edje/signals2.c b/src/examples/edje/signals2.c
index b43b887..61b6a77 100644
--- a/src/examples/edje/signals2.c
+++ b/src/examples/edje/signals2.c
@@ -1,3 +1,6 @@
1//Compile with:
2// edje_cc signalsBubble.edc && gcc -o signals2 signals2.c `pkg-config --libs --cflags ecore ecore-evas edje`
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#else 6#else
@@ -5,6 +8,10 @@
5#define EINA_UNUSED 8#define EINA_UNUSED
6#endif 9#endif
7 10
11#ifndef PACKAGE_DATA_DIR
12#define PACKAGE_DATA_DIR "."
13#endif
14
8#include <Ecore.h> 15#include <Ecore.h>
9#include <Ecore_Evas.h> 16#include <Ecore_Evas.h>
10#include <Edje.h> 17#include <Edje.h>
@@ -56,11 +63,9 @@ _on_mouse_over(void *data, Evas_Object *edje_obj,
56} 63}
57 64
58int 65int
59main(int argc EINA_UNUSED, char **argv) 66main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
60{ 67{
61 const char *edje_file = "signalsBubble.edj"; 68 const char *edje_file = PACKAGE_DATA_DIR"/signalsBubble.edj";
62 char edje_file_path[PATH_MAX];
63 Eina_Prefix *pfx;
64 Ecore_Evas *ee; 69 Ecore_Evas *ee;
65 Evas *evas; 70 Evas *evas;
66 Evas_Object *bg; 71 Evas_Object *bg;
@@ -70,15 +75,9 @@ main(int argc EINA_UNUSED, char **argv)
70 75
71 if (!edje_init()) goto shutdown_ecore_evas; 76 if (!edje_init()) goto shutdown_ecore_evas;
72 77
73 pfx = eina_prefix_new(argv[0], main, "EDJE_EXAMPLES", "edje/examples",
74 edje_file, PACKAGE_BIN_DIR, PACKAGE_LIB_DIR,
75 PACKAGE_DATA_DIR, PACKAGE_DATA_DIR);
76
77 if (!pfx) goto shutdown_edje;
78
79 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 78 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
80 79
81 if (!ee) goto eina_prefix_free; 80 if (!ee) goto shutdown_edje;
82 81
83 ecore_evas_callback_delete_request_set(ee, _on_delete); 82 ecore_evas_callback_delete_request_set(ee, _on_delete);
84 ecore_evas_title_set(ee, "Edje animations and signals"); 83 ecore_evas_title_set(ee, "Edje animations and signals");
@@ -96,15 +95,12 @@ main(int argc EINA_UNUSED, char **argv)
96 95
97 edje_obj = edje_object_add(evas); 96 edje_obj = edje_object_add(evas);
98 97
99 snprintf(edje_file_path, sizeof(edje_file_path), "%s/examples/%s", 98 if (!edje_object_file_set(edje_obj, edje_file, "image_group"))
100 eina_prefix_data_get(pfx), edje_file);
101
102 if (!edje_object_file_set(edje_obj, edje_file_path, "image_group"))
103 { 99 {
104 int err = edje_object_load_error_get(edje_obj); 100 int err = edje_object_load_error_get(edje_obj);
105 const char *errmsg = edje_load_error_str(err); 101 const char *errmsg = edje_load_error_str(err);
106 fprintf(stderr, "Could not load the edje file - reason:%s\n", errmsg); 102 fprintf(stderr, "Could not load the edje file - reason:%s\n", errmsg);
107 goto eina_prefix_free; 103 goto shutdown_edje;
108 } 104 }
109 105
110 edje_object_signal_callback_add(edje_obj, "mouse,move", "part_image", 106 edje_object_signal_callback_add(edje_obj, "mouse,move", "part_image",
@@ -117,15 +113,12 @@ main(int argc EINA_UNUSED, char **argv)
117 113
118 ecore_main_loop_begin(); 114 ecore_main_loop_begin();
119 115
120 eina_prefix_free(pfx);
121 ecore_evas_free(ee); 116 ecore_evas_free(ee);
122 edje_shutdown(); 117 edje_shutdown();
123 ecore_evas_shutdown(); 118 ecore_evas_shutdown();
124 119
125 return EXIT_SUCCESS; 120 return EXIT_SUCCESS;
126 121
127 eina_prefix_free: eina_prefix_free(pfx);
128
129 shutdown_edje: edje_shutdown(); 122 shutdown_edje: edje_shutdown();
130 123
131 shutdown_ecore_evas: ecore_evas_shutdown(); 124 shutdown_ecore_evas: ecore_evas_shutdown();
diff --git a/src/examples/edje/sigtest.c b/src/examples/edje/sigtest.c
index 08300a2..2d600ff 100644
--- a/src/examples/edje/sigtest.c
+++ b/src/examples/edje/sigtest.c
@@ -1,3 +1,6 @@
1//Compile with:
2// edje_cc sigtest.edc && gcc -o sigtest sigtest.c `pkg-config --libs --cflags ecore ecore-evas edje`
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#else 6#else
@@ -5,6 +8,10 @@
5#define EINA_UNUSED 8#define EINA_UNUSED
6#endif 9#endif
7 10
11#ifndef PACKAGE_DATA_DIR
12#define PACKAGE_DATA_DIR "."
13#endif
14
8#include <Ecore.h> 15#include <Ecore.h>
9#include <Ecore_Evas.h> 16#include <Ecore_Evas.h>
10#include <Edje.h> 17#include <Edje.h>
@@ -31,12 +38,12 @@ _on_keydown(void *data,
31 Ecore_Evas *ee; 38 Ecore_Evas *ee;
32 Evas_Event_Key_Down *ev; 39 Evas_Event_Key_Down *ev;
33 Evas_Object *edje_obj; 40 Evas_Object *edje_obj;
34 char *edje_file_path; 41 char *edje_file;
35 42
36 ee = (Ecore_Evas *)data; 43 ee = (Ecore_Evas *)data;
37 ev = (Evas_Event_Key_Down *)einfo; 44 ev = (Evas_Event_Key_Down *)einfo;
38 edje_obj = ecore_evas_data_get(ee, "edje_obj"); 45 edje_obj = ecore_evas_data_get(ee, "edje_obj");
39 edje_file_path = ecore_evas_data_get(ee, "file_path"); 46 edje_file = ecore_evas_data_get(ee, "file");
40 47
41 if (!strcmp(ev->keyname, "h")) 48 if (!strcmp(ev->keyname, "h"))
42 { 49 {
@@ -45,7 +52,7 @@ _on_keydown(void *data,
45 } 52 }
46 else if (!strcmp(ev->keyname, "e")) 53 else if (!strcmp(ev->keyname, "e"))
47 { 54 {
48 if (!edje_object_file_set(edje_obj, edje_file_path, "plain/edje/group")) 55 if (!edje_object_file_set(edje_obj, edje_file, "plain/edje/group"))
49 { 56 {
50 int err = edje_object_load_error_get(edje_obj); 57 int err = edje_object_load_error_get(edje_obj);
51 const char *errmsg = edje_load_error_str(err); 58 const char *errmsg = edje_load_error_str(err);
@@ -59,7 +66,7 @@ _on_keydown(void *data,
59 } 66 }
60 else if (!strcmp(ev->keyname, "l")) 67 else if (!strcmp(ev->keyname, "l"))
61 { 68 {
62 if (!edje_object_file_set(edje_obj, edje_file_path, "lua_base")) 69 if (!edje_object_file_set(edje_obj, edje_file, "lua_base"))
63 { 70 {
64 int err = edje_object_load_error_get(edje_obj); 71 int err = edje_object_load_error_get(edje_obj);
65 const char *errmsg = edje_load_error_str(err); 72 const char *errmsg = edje_load_error_str(err);
@@ -225,17 +232,15 @@ _on_delete(Ecore_Evas *ee EINA_UNUSED)
225} 232}
226 233
227int 234int
228main(int argc EINA_UNUSED, char *argv[]) 235main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
229{ 236{
230 char border_img_path[PATH_MAX]; 237 const char *img_file = PACKAGE_DATA_DIR"/red.png";
231 char edje_file_path[PATH_MAX]; 238 const char *edje_file = PACKAGE_DATA_DIR"/sigtest.edj";
232 const char *edje_file = "sigtest.edj";
233 Ecore_Evas *ee; 239 Ecore_Evas *ee;
234 Evas *evas; 240 Evas *evas;
235 Evas_Object *bg; 241 Evas_Object *bg;
236 Evas_Object *border; 242 Evas_Object *border;
237 Evas_Object *edje_obj; 243 Evas_Object *edje_obj;
238 Eina_Prefix *pfx;
239 244
240 if (!ecore_evas_init()) 245 if (!ecore_evas_init())
241 return EXIT_FAILURE; 246 return EXIT_FAILURE;
@@ -243,22 +248,10 @@ main(int argc EINA_UNUSED, char *argv[])
243 if (!edje_init()) 248 if (!edje_init())
244 goto shutdown_ecore_evas; 249 goto shutdown_ecore_evas;
245 250
246 pfx = eina_prefix_new(argv[0], main,
247 "EDJE_EXAMPLES",
248 "edje/examples",
249 edje_file,
250 PACKAGE_BIN_DIR,
251 PACKAGE_LIB_DIR,
252 PACKAGE_DATA_DIR,
253 PACKAGE_DATA_DIR);
254 if (!pfx)
255 goto shutdown_edje;
256
257 /* this will give you a window with an Evas canvas under the first 251 /* this will give you a window with an Evas canvas under the first
258 * engine available */ 252 * engine available */
259 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 253 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
260 if (!ee) 254 if (!ee) goto shutdown_edje;
261 goto free_prefix;
262 255
263 ecore_evas_callback_delete_request_set(ee, _on_delete); 256 ecore_evas_callback_delete_request_set(ee, _on_delete);
264 ecore_evas_title_set(ee, "Signals and wessages tester"); 257 ecore_evas_title_set(ee, "Signals and wessages tester");
@@ -279,9 +272,7 @@ main(int argc EINA_UNUSED, char *argv[])
279 edje_object_message_handler_set(edje_obj, _on_message, NULL); 272 edje_object_message_handler_set(edje_obj, _on_message, NULL);
280 edje_object_signal_callback_add(edje_obj, "*", "*", _on_signal, NULL); 273 edje_object_signal_callback_add(edje_obj, "*", "*", _on_signal, NULL);
281 274
282 snprintf(edje_file_path, sizeof(edje_file_path), 275 if (!edje_object_file_set(edje_obj, edje_file, "lua_base"))
283 "%s/examples/%s", eina_prefix_data_get(pfx), edje_file);
284 if (!edje_object_file_set(edje_obj, edje_file_path, "lua_base"))
285 { 276 {
286 int err = edje_object_load_error_get(edje_obj); 277 int err = edje_object_load_error_get(edje_obj);
287 const char *errmsg = edje_load_error_str(err); 278 const char *errmsg = edje_load_error_str(err);
@@ -289,7 +280,7 @@ main(int argc EINA_UNUSED, char *argv[])
289 errmsg); 280 errmsg);
290 281
291 evas_object_del(edje_obj); 282 evas_object_del(edje_obj);
292 goto free_prefix; 283 goto shutdown_edje;
293 } 284 }
294 285
295 fprintf(stdout, "Loaded Edje object bound to group 'lua_base' from" 286 fprintf(stdout, "Loaded Edje object bound to group 'lua_base' from"
@@ -299,17 +290,14 @@ main(int argc EINA_UNUSED, char *argv[])
299 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40); 290 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40);
300 evas_object_show(edje_obj); 291 evas_object_show(edje_obj);
301 ecore_evas_data_set(ee, "edje_obj", edje_obj); 292 ecore_evas_data_set(ee, "edje_obj", edje_obj);
302 ecore_evas_data_set(ee, "file_path", edje_file_path); 293 ecore_evas_data_set(ee, "file", edje_file);
303 294
304 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, ee); 295 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_keydown, ee);
305 296
306 snprintf(border_img_path, sizeof(border_img_path),
307 "%s/edje/examples/red.png", eina_prefix_data_get(pfx));
308
309 /* this is a border around the Edje object above, here just to 297 /* this is a border around the Edje object above, here just to
310 * emphasize its geometry */ 298 * emphasize its geometry */
311 border = evas_object_image_filled_add(evas); 299 border = evas_object_image_filled_add(evas);
312 evas_object_image_file_set(border, border_img_path, NULL); 300 evas_object_image_file_set(border, img_file, NULL);
313 evas_object_image_border_set(border, 2, 2, 2, 2); 301 evas_object_image_border_set(border, 2, 2, 2, 2);
314 evas_object_image_border_center_fill_set(border, EVAS_BORDER_FILL_NONE); 302 evas_object_image_border_center_fill_set(border, EVAS_BORDER_FILL_NONE);
315 303
@@ -323,15 +311,12 @@ main(int argc EINA_UNUSED, char *argv[])
323 311
324 ecore_main_loop_begin(); 312 ecore_main_loop_begin();
325 313
326 eina_prefix_free(pfx);
327 ecore_evas_free(ee); 314 ecore_evas_free(ee);
328 ecore_evas_shutdown(); 315 ecore_evas_shutdown();
329 edje_shutdown(); 316 edje_shutdown();
330 317
331 return EXIT_SUCCESS; 318 return EXIT_SUCCESS;
332 319
333 free_prefix:
334 eina_prefix_free(pfx);
335 shutdown_edje: 320 shutdown_edje:
336 edje_shutdown(); 321 edje_shutdown();
337 shutdown_ecore_evas: 322 shutdown_ecore_evas:
diff --git a/src/examples/eet/eet-basic.c b/src/examples/eet/eet-basic.c
index 05ff397..acd61a4 100644
--- a/src/examples/eet/eet-basic.c
+++ b/src/examples/eet/eet-basic.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o eet-basic eet-basic.c `pkg-config --cflags --libs eet`
3
1#include <Eet.h> 4#include <Eet.h>
2 5
3int 6int
diff --git a/src/examples/eet/eet-data-cipher_decipher.c b/src/examples/eet/eet-data-cipher_decipher.c
index 2ef965c..1708b78 100644
--- a/src/examples/eet/eet-data-cipher_decipher.c
+++ b/src/examples/eet/eet-data-cipher_decipher.c
@@ -1,6 +1,5 @@
1/* 1//Compile with:
2 * build: gcc -o eet_data_file_cipher_decipher eet-data-file_cipher_decipher.c `pkg-config --cflags --libs eet eina` 2// gcc -o eet-data-cipher_decipher eet-data-cipher_decipher.c `pkg-config --cflags --libs eet eina`
3 */
4 3
5#include <Eina.h> 4#include <Eina.h>
6#include <Eet.h> 5#include <Eet.h>
diff --git a/src/examples/eet/eet-data-file_descriptor_01.c b/src/examples/eet/eet-data-file_descriptor_01.c
index 4b5b75f..be43df9 100644
--- a/src/examples/eet/eet-data-file_descriptor_01.c
+++ b/src/examples/eet/eet-data-file_descriptor_01.c
@@ -1,6 +1,6 @@
1/* 1//Compile with:
2 * build: gcc -o eet_data_file_descriptor eet-data-file_descriptor.c `pkg-config --cflags --libs eet eina` 2// gcc -o eet-data-file_descriptor_01 eet-data-file_descriptor_01.c `pkg-config --cflags --libs eet eina`
3 */ 3
4#include <Eina.h> 4#include <Eina.h>
5#include <Eet.h> 5#include <Eet.h>
6#include <stdio.h> 6#include <stdio.h>
diff --git a/src/examples/eet/eet-data-file_descriptor_02.c b/src/examples/eet/eet-data-file_descriptor_02.c
index 65ba79e..bfd34d1 100644
--- a/src/examples/eet/eet-data-file_descriptor_02.c
+++ b/src/examples/eet/eet-data-file_descriptor_02.c
@@ -1,6 +1,5 @@
1/* 1//Compile with:
2 * build: gcc -o eet_data_file_descriptor_02 eet-data-file_descriptor_02.c `pkg-config --cflags --libs eet eina` 2// gcc -o eet-data-file_descriptor_02 eet-data-file_descriptor_02.c `pkg-config --cflags --libs eet eina`
3 */
4 3
5#include <Eina.h> 4#include <Eina.h>
6#include <Eet.h> 5#include <Eet.h>
diff --git a/src/examples/eet/eet-data-nested.c b/src/examples/eet/eet-data-nested.c
index a6b0e12..cfded40 100644
--- a/src/examples/eet/eet-data-nested.c
+++ b/src/examples/eet/eet-data-nested.c
@@ -1,6 +1,6 @@
1/* 1//Compile with:
2 * build: gcc -o eet_data_nested eet-data-nested.c `pkg-config --cflags --libs eet eina` 2// gcc -o eet-data-nested eet-data-nested.c `pkg-config --cflags --libs eet eina`
3 */ 3
4#include <Eina.h> 4#include <Eina.h>
5#include <Eet.h> 5#include <Eet.h>
6#include <stdio.h> 6#include <stdio.h>
diff --git a/src/examples/eet/eet-data-simple.c b/src/examples/eet/eet-data-simple.c
index 1951fc0..3931e83 100644
--- a/src/examples/eet/eet-data-simple.c
+++ b/src/examples/eet/eet-data-simple.c
@@ -1,6 +1,6 @@
1/* 1//Compile with:
2 * build: gcc -o eet_data_simple eet-data-simple.c `pkg-config --cflags --libs eet eina` 2// gcc -o eet-data-simple eet-data-simple.c `pkg-config --cflags --libs eet eina`
3 */ 3
4#include <Eina.h> 4#include <Eina.h>
5#include <Eet.h> 5#include <Eet.h>
6#include <stdio.h> 6#include <stdio.h>
diff --git a/src/examples/eet/eet-file.c b/src/examples/eet/eet-file.c
index 740c179..9b64425 100644
--- a/src/examples/eet/eet-file.c
+++ b/src/examples/eet/eet-file.c
@@ -1,6 +1,6 @@
1/* 1//Compile with:
2 * build: gcc -o eet_file eet-file.c `pkg-config --cflags --libs eet` 2// gcc -o eet-file eet-file.c `pkg-config --cflags --libs eet`
3 */ 3
4#include <Eet.h> 4#include <Eet.h>
5#include <stdio.h> 5#include <stdio.h>
6#include <string.h> 6#include <string.h>
diff --git a/src/examples/eina/eina_simple_xml_parser_01.c b/src/examples/eina/eina_simple_xml_parser_01.c
index e85f2f0..ff217c0 100644
--- a/src/examples/eina/eina_simple_xml_parser_01.c
+++ b/src/examples/eina/eina_simple_xml_parser_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -Wall -o eina_simple_xml_01 eina_simple_xml_01.c `pkg-config --cflags --libs eina` 2//gcc -Wall -o eina_simple_xml_parser_01 eina_simple_xml_parser_01.c `pkg-config --cflags --libs eina`
3 3
4#include <Eina.h> 4#include <Eina.h>
5#include <stdio.h> 5#include <stdio.h>
diff --git a/src/examples/eina/eina_xattr_01.c b/src/examples/eina/eina_xattr_01.c
index c26c441..c739dfe 100644
--- a/src/examples/eina/eina_xattr_01.c
+++ b/src/examples/eina/eina_xattr_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g eina_xattr_02.c -o eina_xattr_02 `pkg-config --cflags --libs eina` 2//gcc -g eina_xattr_01.c -o eina_xattr_01 `pkg-config --cflags --libs eina`
3 3
4#include <Eina.h> 4#include <Eina.h>
5 5
diff --git a/src/examples/eio/eio_file_copy.c b/src/examples/eio/eio_file_copy.c
index 7704cfc..72da1b7 100644
--- a/src/examples/eio/eio_file_copy.c
+++ b/src/examples/eio/eio_file_copy.c
@@ -1,6 +1,5 @@
1/** 1//Compile with:
2 * Compile with gcc -o eio_file_copy eio_file_copy.c `pkg-config --cflags --libs ecore eio` 2//gcc -o eio_file_copy eio_file_copy.c `pkg-config --cflags --libs ecore eio`
3 */
4 3
5#include <stdlib.h> 4#include <stdlib.h>
6#include <stdio.h> 5#include <stdio.h>
diff --git a/src/examples/eio/eio_file_ls.c b/src/examples/eio/eio_file_ls.c
index 7a9e7f5..795e80b 100644
--- a/src/examples/eio/eio_file_ls.c
+++ b/src/examples/eio/eio_file_ls.c
@@ -1,6 +1,5 @@
1/** 1//Compile with:
2 * Compile with gcc -o eio_file_ls eio_file_ls.c `pkg-config --cflags --libs ecore eio` 2//gcc -o eio_file_ls eio_file_ls.c `pkg-config --cflags --libs ecore eio`
3 */
4 3
5#include <stdlib.h> 4#include <stdlib.h>
6#include <stdio.h> 5#include <stdio.h>
diff --git a/src/examples/emotion/emotion_basic_example.c b/src/examples/emotion/emotion_basic_example.c
index 7e3e4c2..df3ce15 100644
--- a/src/examples/emotion/emotion_basic_example.c
+++ b/src/examples/emotion/emotion_basic_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o emotion_basic_example emotion_basic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <Ecore_Evas.h> 5#include <Ecore_Evas.h>
3#include <Evas.h> 6#include <Evas.h>
diff --git a/src/examples/emotion/emotion_border_example.c b/src/examples/emotion/emotion_border_example.c
index 9df53f4..5fa6f0f 100644
--- a/src/examples/emotion/emotion_border_example.c
+++ b/src/examples/emotion/emotion_border_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o emotion_border_example emotion_border_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <Ecore_Evas.h> 5#include <Ecore_Evas.h>
3#include <Evas.h> 6#include <Evas.h>
diff --git a/src/examples/emotion/emotion_generic_example.c b/src/examples/emotion/emotion_generic_example.c
index b838286..580cae9 100644
--- a/src/examples/emotion/emotion_generic_example.c
+++ b/src/examples/emotion/emotion_generic_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o emotion_generic_example emotion_generic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <Ecore_Evas.h> 5#include <Ecore_Evas.h>
3#include <Evas.h> 6#include <Evas.h>
diff --git a/src/examples/emotion/emotion_generic_subtitle_example.c b/src/examples/emotion/emotion_generic_subtitle_example.c
index 448b505..fcdf177 100644
--- a/src/examples/emotion/emotion_generic_subtitle_example.c
+++ b/src/examples/emotion/emotion_generic_subtitle_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o emotion_generic_subtitle_example emotion_generic_subtitle_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <Ecore_Evas.h> 5#include <Ecore_Evas.h>
3#include <Evas.h> 6#include <Evas.h>
diff --git a/src/examples/emotion/emotion_signals_example.c b/src/examples/emotion/emotion_signals_example.c
index 2469c46..efba9ff 100644
--- a/src/examples/emotion/emotion_signals_example.c
+++ b/src/examples/emotion/emotion_signals_example.c
@@ -1,3 +1,6 @@
1//Compile with:
2// gcc -o emotion_signals_example emotion_signals_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas`
3
1#include <Ecore.h> 4#include <Ecore.h>
2#include <Ecore_Evas.h> 5#include <Ecore_Evas.h>
3#include <Evas.h> 6#include <Evas.h>
diff --git a/src/examples/ethumb_client/ethumb_dbus.c b/src/examples/ethumb_client/ethumb_dbus.c
index 2f613e9..aa3b2f5 100644
--- a/src/examples/ethumb_client/ethumb_dbus.c
+++ b/src/examples/ethumb_client/ethumb_dbus.c
@@ -17,6 +17,8 @@
17 * License along with this library; 17 * License along with this library;
18 * if not, see <http://www.gnu.org/licenses/>. 18 * if not, see <http://www.gnu.org/licenses/>.
19 * 19 *
20 * gcc -o ethumb_dbus ethumb_dbus.c `pkg-config --libs --cflags eina ecore ethumb ethumb_client`
21 *
20 * @author Rafael Antognolli <antognolli@profusion.mobi> 22 * @author Rafael Antognolli <antognolli@profusion.mobi>
21 */ 23 */
22#ifdef HAVE_CONFIG_H 24#ifdef HAVE_CONFIG_H
diff --git a/src/examples/evas/evas-aspect-hints.c b/src/examples/evas/evas-aspect-hints.c
index be301cb..0d81027 100644
--- a/src/examples/evas/evas-aspect-hints.c
+++ b/src/examples/evas/evas-aspect-hints.c
@@ -9,7 +9,8 @@
9 * object implementing aspect control for children. 9 * object implementing aspect control for children.
10 * 10 *
11 * @verbatim 11 * @verbatim
12 * gcc -o evas-events evas-events.c `pkg-config --libs --cflags ecore-evas edje` 12 * edje_cc aspect.edc
13 * gcc -o evas-aspect-hints evas-aspect-hints.c `pkg-config --libs --cflags evas ecore ecore-evas edje`
13 * @endverbatim 14 * @endverbatim
14 */ 15 */
15 16
diff --git a/src/examples/evas/evas-hints.c b/src/examples/evas/evas-hints.c
index d88924b..8cfbdb1 100644
--- a/src/examples/evas/evas-hints.c
+++ b/src/examples/evas/evas-hints.c
@@ -10,7 +10,7 @@
10 * output. 10 * output.
11 * 11 *
12 * @verbatim 12 * @verbatim
13 * gcc -o evas-events evas-events.c `pkg-config --libs --cflags ecore-evas` 13 * gcc -o evas-hints evas-hints.c `pkg-config --libs --cflags evas ecore ecore-evas`
14 * @endverbatim 14 * @endverbatim
15 */ 15 */
16 16
diff --git a/src/examples/evas/evas-images3.c b/src/examples/evas/evas-images3.c
index 1c66772..fe35ca3 100644
--- a/src/examples/evas/evas-images3.c
+++ b/src/examples/evas/evas-images3.c
@@ -6,7 +6,7 @@
6 * for output. 6 * for output.
7 * 7 *
8 * @verbatim 8 * @verbatim
9 * gcc -o evas-images2 evas-images2.c `pkg-config --libs --cflags evas ecore ecore-evas` 9 * gcc -o evas-images3 evas-images3.c `pkg-config --libs --cflags evas ecore ecore-evas`
10 * @endverbatim 10 * @endverbatim
11 */ 11 */
12 12
diff --git a/src/examples/evas/evas-init-shutdown.c b/src/examples/evas/evas-init-shutdown.c
index a7508d8..eb20089 100644
--- a/src/examples/evas/evas-init-shutdown.c
+++ b/src/examples/evas/evas-init-shutdown.c
@@ -8,8 +8,7 @@
8 * to. 8 * to.
9 * 9 *
10 * @verbatim 10 * @verbatim
11 * gcc -o evas-init-shutdown evas-init-shutdown.c `pkg-config --libs \ 11 * gcc -o evas-init-shutdown evas-init-shutdown.c `pkg-config --libs --cflags evas`
12 * --cflags evas`
13 * @endverbatim 12 * @endverbatim
14 * 13 *
15 */ 14 */
diff --git a/src/examples/evas/evas-map-utils.c b/src/examples/evas/evas-map-utils.c
index 78fdd68..30eb052 100644
--- a/src/examples/evas/evas-map-utils.c
+++ b/src/examples/evas/evas-map-utils.c
@@ -1,6 +1,14 @@
1/* 1/**
2 * Simple Evas example illustrating basic map utils.
3 *
4 * You'll need at least one engine built for it (excluding the buffer
5 * one). See stdout/stderr for output.
6 *
7 * @verbatim
2 * gcc -o evas-map-utils evas-map-utils.c `pkg-config --cflags --libs evas ecore ecore-evas` 8 * gcc -o evas-map-utils evas-map-utils.c `pkg-config --cflags --libs evas ecore ecore-evas`
9 * @endverbatim
3 */ 10 */
11
4#ifdef HAVE_CONFIG_H 12#ifdef HAVE_CONFIG_H
5#include "config.h" 13#include "config.h"
6#else 14#else
diff --git a/src/examples/evas/evas-object-manipulation-eo.c b/src/examples/evas/evas-object-manipulation-eo.c
index 99f1064..2fc5c8d 100644
--- a/src/examples/evas/evas-object-manipulation-eo.c
+++ b/src/examples/evas/evas-object-manipulation-eo.c
@@ -9,7 +9,7 @@
9 * output. 9 * output.
10 * 10 *
11 * @verbatim 11 * @verbatim
12 * gcc -o evas-object-manipulation-eo evas-object-manipulation-eo.c `pkg-config --libs --cflags ecore evas ecore-evas` 12 * gcc -o evas-object-manipulation-eo evas-object-manipulation-eo.c `pkg-config --libs --cflags ecore evas ecore-evas eo`
13 * @endverbatim 13 * @endverbatim
14 */ 14 */
15 15
diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c
index d8e60d6..67e85c1 100644
--- a/src/examples/evas/evas-stacking.c
+++ b/src/examples/evas/evas-stacking.c
@@ -7,7 +7,7 @@
7 * output. 7 * output.
8 * 8 *
9 * @verbatim 9 * @verbatim
10 * gcc -o evas-stacking evas-stacking.c `pkg-config --libs --cflags evas ecore ecore-evas edje` 10 * gcc -o evas-stacking evas-stacking.c `pkg-config --libs --cflags evas ecore ecore-evas`
11 * @endverbatim 11 * @endverbatim
12 */ 12 */
13 13
diff --git a/src/examples/evas/evas-table.c b/src/examples/evas/evas-table.c
index 8aa2b5e..f3f5d6c 100644
--- a/src/examples/evas/evas-table.c
+++ b/src/examples/evas/evas-table.c
@@ -5,7 +5,7 @@
5 * one) and the png image loader also built. 5 * one) and the png image loader also built.
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -o evas-table evas-table.c `pkg-config --libs --cflags ecore-evas` 8 * gcc -o evas-table evas-table.c `pkg-config --libs --cflags evas ecore ecore-evas`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11