yakov pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=205753e770104a5c4c1a06fe4b989f675bf913a0
commit 205753e770104a5c4c1a06fe4b989f675bf913a0 Author: Yakov Goldberg <yako...@samsung.com> Date: Tue Mar 24 15:17:54 2015 +0200 Fix image paths --- src/bin/egui_gui/editor.c | 5 +---- src/bin/egui_gui/egui_logic.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bin/egui_gui/editor.c b/src/bin/egui_gui/editor.c index 825cbe1..4cbc6c2 100644 --- a/src/bin/egui_gui/editor.c +++ b/src/bin/egui_gui/editor.c @@ -1378,9 +1378,6 @@ _table_borders_draw(Eo *table, int w, int h, Eina_List **_border_objects) { Eina_List *border_objects = *_border_objects; int i = 0, j = 0; - char path[100]; - getcwd(path, sizeof(path)); - sprintf(path, "%s/data/images/table_cell_border.png", path); Eo *o; EINA_LIST_FREE(border_objects, o) { @@ -1396,7 +1393,7 @@ _table_borders_draw(Eo *table, int w, int h, Eina_List **_border_objects) eo_do(o, evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL), evas_obj_visibility_set(EINA_TRUE), - efl_file_set(path, NULL)); + efl_file_set(EGUI_LAYOUT_IMAGES_PATH"/table_cell_border.png", NULL)); eo_do(table, elm_obj_table_pack(o, i, j, 1, 1)); border_objects = eina_list_append(border_objects, o); } diff --git a/src/bin/egui_gui/egui_logic.c b/src/bin/egui_gui/egui_logic.c index 9ff2ae2..0a4795e 100644 --- a/src/bin/egui_gui/egui_logic.c +++ b/src/bin/egui_gui/egui_logic.c @@ -735,7 +735,7 @@ _factory_item_finalize(Eo *item_box, char *image_name, const char *egui_class_na // update of the image icon Eo *o = eina_list_data_get(lst); char path[100] = {'\0'}; - sprintf(path, "%s/images/%s", PACKAGE_DATA_DIR, image_name); + sprintf(path, "%s/%s", EGUI_LAYOUT_IMAGES_PATH, image_name); eo_do(o, efl_file_set(path, NULL)); drag_add(item_box, drag_image ? o : NULL, egui_class_name); --