Commit 71458cdb authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ui/utils: Don't make assumptions about images path

parent b7985749
......@@ -29,11 +29,9 @@
create_image(Evas_Object *parent, const char *image_path)
char path[PATH_MAX];
Evas_Object *img = elm_icon_add(parent);
snprintf(path, PATH_MAX, ICON_DIR"/%s", image_path);
elm_image_file_set(img, path, NULL);
elm_image_file_set(img, image_path, NULL);
/* */
elm_image_resizable_set(img, EINA_TRUE, EINA_TRUE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment