cedric pushed a commit to branch master. http://git.enlightenment.org/tools/expedite.git/commit/?id=105e6568a4974fd86d11291a10cf615a13df43ed
commit 105e6568a4974fd86d11291a10cf615a13df43ed Author: Cedric Bail <cedric.b...@free.fr> Date: Wed Sep 25 10:25:47 2019 -0700 main: lookup for the right file thanks error warning in Efl! --- src/bin/ui.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bin/ui.c b/src/bin/ui.c index d31d4a5..adaba18 100644 --- a/src/bin/ui.c +++ b/src/bin/ui.c @@ -12,7 +12,6 @@ static double t_start = 0.0; static double t_loop = 0.0; static int f_start = 0; static int f_loop = 0; -static char data_dir[4096]; int async_render = 0; Eina_List *menu = NULL; @@ -568,7 +567,6 @@ ui_loop(void *data EINA_UNUSED) tr = tt; EINA_LIST_FOREACH(menu, l, mi) { - char buf[4096]; Evas_Coord x, y, w, h, tw, th; Evas_Coord len; double a; @@ -624,8 +622,7 @@ ui_loop(void *data EINA_UNUSED) efl_gfx_color_set(o, a, a, a, a); o = o_menu_icon; - snprintf(buf, 4096, "%s%s", data_dir, mi->icon); - efl_file_simple_load(o, buf, NULL); + efl_file_simple_load(o, build_path(mi->icon), NULL); efl_gfx_color_set(o, a / 2, a / 2, a / 2, a / 2); } i++; --