Summary: Process of loading is standard now. TODOs which are added here will be done in one of the next commits soon.
Reviewers: cedric, Hermet, raster
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2013
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
evas-text.c
DATA_FILES = \
-enlightenment.png \
-red.png \
-im1.png \
-cube1.png \
+resources/images/enlightenment.png \
+resources/images/red.png \
+resources/images/im1.png \
+resources/images/cube1.png \
resources/images/bg_space.jpg \
resources/images/eagle.png \
resources/images/EarthDiffuse.png \
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 400
#define HEIGHT 400
-static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/sonic.md2";
-static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/sonic.png";
+static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/sonic.md2";
+static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/sonic.png";
Ecore_Evas *ecore_evas = NULL;
Evas *evas = NULL;
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <Ecore_Getopt.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 800
#define HEIGHT 600
#define ANIMATION_COUNT 3
#define MAX_PATH 128
-static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/M15.obj";
-static const char *image1_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/M15.png";
-static const char *image2_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/M15_1.png";
+static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/M15.obj";
+static const char *image1_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/M15.png";
+static const char *image2_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/M15_1.png";
Ecore_Evas *ecore_evas = NULL;
Evas *evas = NULL;
+++ /dev/null
-#define EVAS_3D_IMAGE_FOLDER "/resources/images"
-#define EVAS_3D_MODEL_FOLDER "/resources/models"
-#define EVAS_3D_SAVED_FILES "/saved_files"
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 400
#define HEIGHT 400
-static const char *normal_map_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/normal_lego.png";
+static const char *normal_map_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/normal_lego.png";
typedef struct _Scene_Data
{
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include <Ecore_File.h>
+#include "evas-common.h"
#define WIDTH 1024
#define HEIGHT 1024
-static const char *input_model_path = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/sonic.md2";
-static const char *output_model_path = PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES "/saved_Sonic_EET.eet";
+static const char *input_model_path = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/sonic.md2";
+static const char *output_model_path = PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES "/saved_Sonic_EET.eet";
Ecore_Evas *ecore_evas = NULL;
Evas *evas = NULL;
0.50, 0.00, 0.50, 0.30),
evas_3d_material_shininess_set(50.0));
- if (!ecore_file_mkpath(PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES))
+ if (!ecore_file_mkpath(PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES))
fprintf(stderr, "Failed to create folder %s\n\n",
- PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES);
+ PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES);
eo_do(mesh, efl_file_save(output_model_path, NULL, NULL));
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <Evas.h>
#include <Eo.h>
#include <math.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 800
#define HEIGHT 600
-static const char *image_eagle_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/eagle.png";
-static const char *eagle_path = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/eagle.md2";
+static const char *image_eagle_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/eagle.png";
+static const char *eagle_path = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/eagle.md2";
typedef struct _Scene_Data
{
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 400
#define HEIGHT 400
-static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/sonic.md2";
-static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/sonic.png";
+static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/sonic.md2";
+static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/sonic.png";
Ecore_Evas *ecore_evas = NULL;
Evas *evas = NULL;
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#include <math.h>
initial_node_data[number * 10 + 9]));\
ecore_timer_add(0.01, _animate_##extention, node_##extention);
-static const char *template_path = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/mesh_for_mmap.";
+static const char *template_path = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/mesh_for_mmap.";
Ecore_Evas *ecore_evas = NULL;
Evas *evas = NULL;
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Ecore_Evas.h>
#include <Ecore.h>
#include <stdio.h>
#include <math.h>
#include <Eo.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 1024
#define HEIGHT 1024
-static const char *bg_image = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/bg_space.jpg";
-static const char *moon_image = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/moon.png";
-static const char *earth_image = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/EarthDiffuse.png";
+static const char *bg_image = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/bg_space.jpg";
+static const char *moon_image = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/moon.png";
+static const char *earth_image = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/EarthDiffuse.png";
typedef struct _Scene_Data
{
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 1900
#define HEIGHT 1080
COL_BLUE, 0.5), \
evas_3d_material_shininess_set(100.0));
-static const char *texture_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/sweet_home_reversed.png";
-static const char *output_template = PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES "/saved_";
-static const char *input_template = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/sweet_";
+static const char *texture_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/sweet_home_reversed.png";
+static const char *output_template = PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES "/saved_";
+static const char *input_template = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/sweet_";
Ecore_Evas *ecore_evas = NULL;
Evas *evas = NULL;
eo_do(material_with_tex,
evas_3d_material_texture_set(EVAS_3D_MATERIAL_DIFFUSE, texture));
- if (!ecore_file_mkpath(PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES))
+ if (!ecore_file_mkpath(PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES))
fprintf(stderr, "Failed to create folder %s\n\n",
- PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES);
+ PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES);
ADD_OBJ_MESH_AND_SAVED_COPY(home, -GRID_SIZE, -GRID_SIZE, 0,
EVAS_3D_SHADE_MODE_PHONG, material_with_tex)
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <math.h>
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include "evas-common.h"
#define WIDTH 400
#define HEIGHT 400
-static const char *earth_image = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/EarthDiffuse.png";
+static const char *earth_image = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/EarthDiffuse.png";
typedef struct _vec4
{
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
-#include "evas-3d-common.h"
+#include <Ecore_File.h>
+#include "evas-common.h"
#define WIDTH 1024
#define HEIGHT 1024
#define NUMBER_OF_MESHES 32
-static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/normal_lego.png";
-static const char *input_template = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/";
-static const char *output_template = PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES "/";
+static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/normal_lego.png";
+static const char *input_template = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/";
+static const char *output_template = PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES "/";
static const char *file_name[8] = {"Normal_UVs_Colors.ply",
"Normal_UVs_NoColors.ply",
"Normal_NoUVs_Colors.ply",
1.0, 1.0, 1.0, 1.0),
evas_3d_material_shininess_set(50.0));
- if (!ecore_file_mkpath(PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES))
+ if (!ecore_file_mkpath(PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES))
fprintf(stderr, "Failed to create folder %s\n\n",
- PACKAGE_EXAMPLES_DIR EVAS_3D_SAVED_FILES);
+ PACKAGE_EXAMPLES_DIR EVAS_SAVED_FILES);
/* Add the meshes. */
for (i = 0; i < NUMBER_OF_MESHES; i++)
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
-#endif
-
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
+#endif
#include <Eo.h>
#include <Evas.h>
#define DIFFUSE_LIGHT 1.0, 1.0, 1.0
#define SPECULAR_LIGHT 1.0, 1.0, 1.0
-static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_3D_MODEL_FOLDER "/sonic.md2";
-static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_3D_IMAGE_FOLDER "/sonic.png";
+static const char *model_path = PACKAGE_EXAMPLES_DIR EVAS_MODEL_FOLDER "/sonic.md2";
+static const char *image_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/sonic.png";
static const vec2 tex_scale = {1, 1};
Ecore_Evas *ecore_evas = NULL;
#include <Edje.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH 320
#define HEIGHT 480
-static const char *border_img_path = PACKAGE_EXAMPLES_DIR "/red.png";
+static const char *border_img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/red.png";
static const char *edje_file_path = PACKAGE_EXAMPLES_DIR "/aspect.edj";
struct test_data
--- /dev/null
+#define EVAS_IMAGE_FOLDER "/resources/images"
+#define EVAS_MODEL_FOLDER "/resources/models"
+#define EVAS_SAVED_FILES "/saved_files"
* gcc -o evas-events evas-events.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
+//TODO: Fix warning.
#ifdef HAVE_CONFIG_H
-
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
-static const char *img_path = PACKAGE_EXAMPLES_DIR "/enlightenment.png";
+static const char *img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/enlightenment.png";
static const char *commands = \
"commands are:\n"
#include <Ecore.h>
#include <Ecore_Evas.h>
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include "evas-common.h"
#define WIDTH 320
#define HEIGHT 480
"\ts - print current hints information\n"
"\th - print help\n";
-static const char *border_img_path = PACKAGE_EXAMPLES_DIR "/red.png";
+static const char *border_img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/red.png";
struct coord_tuple
{
* gcc -o evas-images evas-images.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
+//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
-static const char *border_img_path = PACKAGE_EXAMPLES_DIR "/red.png";
-static const char *valid_path = PACKAGE_EXAMPLES_DIR "/enlightenment.png";
+static const char *border_img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/red.png";
+static const char *valid_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/enlightenment.png";
static const char *bogus_path = "/tmp/non-existent-220986.png";
static const char *commands = \
"commands are:\n"
* gcc -o evas-images2 evas-images2.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
+//TODO: Fix warnings
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
-static const char *img_path = PACKAGE_EXAMPLES_DIR "/enlightenment.png";
+static const char *img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/enlightenment.png";
static const char *commands = \
"commands are:\n"
"\tp - change proxy image's source\n"
* gcc -o evas-images3 evas-images3.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
+//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
-static const char *img_path = PACKAGE_EXAMPLES_DIR "/enlightenment.png";
+static const char *img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/enlightenment.png";
static const char *commands = \
"commands are:\n"
"\tw - write new pixel data to image\n"
* gcc -o evas-images4 evas-images4.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
+//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
-static const char *img_path = PACKAGE_EXAMPLES_DIR "/im1.png";
+static const char *img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/im1.png";
static const char *commands = \
"commands are:\n"
"\tp - print image fill property\n"
#include <Ecore.h>
#include <Ecore_Evas.h>
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include "evas-common.h"
#define WIDTH (800)
#define HEIGHT (400)
Eina_Bool image;
};
+static const char *img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/cube1.png";
+
static struct exemple_data d =
{ NULL, NULL, NULL, NULL, NULL, 62, 62, 262, 62, 262, 262, 62, 262,
EINA_FALSE, EINA_FALSE, EINA_FALSE, EINA_FALSE, EINA_FALSE };
{
evas_object_del(d.target1);
d.target1 = evas_object_image_filled_add(e);
- evas_object_image_file_set(d.target1, "cube1.png", NULL);
+ evas_object_image_file_set(d.target1, img_path, NULL);
evas_object_image_smooth_scale_set(d.target1, 0);
evas_object_resize(d.target1, 200, 200);
evas_object_show(d.target1);
evas_object_del(d.target2);
d.target2 = evas_object_image_filled_add(e);
- evas_object_image_file_set(d.target2, "cube1.png", NULL);
+ evas_object_image_file_set(d.target2, img_path, NULL);
evas_object_image_smooth_scale_set(d.target2, 0);
evas_object_anti_alias_set(d.target2, EINA_TRUE);
evas_object_resize(d.target2, 200, 200);
#include <stdio.h>
#include <string.h>
#include <math.h>
+#include "evas-common.h"
#define WIDTH 480
#define HEIGHT 480
Eina_Bool apply_lighting : 1;
} App_Data;
+static const char *img1_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/cube1.png";
+static const char *img2_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/enlightenment.png";
+static const char *img3_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/im1.png";
+
static const char *help_string =
"Valid commands:\n"
"\ta - toggle alpha for maps\n"
d.canvas = ecore_evas_get(d.ee);
bg = evas_object_image_filled_add(d.canvas);
- evas_object_image_file_set(bg, "cube1.png", NULL);
+ evas_object_image_file_set(bg, img1_path, NULL);
ecore_evas_object_associate(d.ee, bg, 0);
evas_object_focus_set(bg, EINA_TRUE);
evas_object_move(bg, 0, 0);
o = evas_object_image_filled_add(d.canvas);
evas_object_name_set(o, "obj2");
- evas_object_image_file_set(o, "enlightenment.png", NULL);
+ evas_object_image_file_set(o, img2_path, NULL);
evas_object_show(o);
o = evas_object_image_filled_add(d.canvas);
evas_object_name_set(o, "obj3");
- evas_object_image_file_set(o, "enlightenment.png", NULL);
+ evas_object_image_file_set(o, img2_path, NULL);
evas_object_show(o);
osrc = evas_object_image_filled_add(d.canvas);
- evas_object_image_file_set(osrc, "im1.png", NULL);
+ evas_object_image_file_set(osrc, img3_path, NULL);
evas_object_name_set(osrc, "obj4_source");
evas_object_show(osrc);
* gcc -o evas-object-manipulation-eo evas-object-manipulation-eo.c `pkg-config --libs --cflags ecore evas ecore-evas eo`
* @endverbatim
*/
+//TODO: Fix error and warning.
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
-static const char *img_path = PACKAGE_EXAMPLES_DIR "/enlightenment.png";
-static const char *border_img_path = PACKAGE_EXAMPLES_DIR "/red.png";
+static const char *img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/enlightenment.png";
+static const char *border_img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/red.png";
struct test_data
{
* gcc -o evas-smart-object evas-smart-object.c `pkg-config --libs --cflags evas ecore ecore-evas`
* @endverbatim
*/
+//TODO: Fix warnings.
#ifdef HAVE_CONFIG_H
-
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
#include <Ecore_Evas.h>
#include <stdio.h>
#include <errno.h>
+#include "evas-common.h"
#define WIDTH (320)
#define HEIGHT (240)
}
static struct test_data d = {0};
-static const char *border_img_path = PACKAGE_EXAMPLES_DIR "/red.png";
+static const char *border_img_path = PACKAGE_EXAMPLES_DIR EVAS_IMAGE_FOLDER "/red.png";
#define _evas_smart_example_type "Evas_Smart_Example"
#define EVT_CHILDREN_NUMBER_CHANGED "children,changed"