From e1e8691ec6e0f407fc413c262fb0ef066b74a512 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 4 May 2014 23:29:38 -0400 Subject: [PATCH] correctly create login icons using theme edj's path on a related topic, entrance_gui_theme_path_get() should probably just return a static buf[PATH_MAX] instead of stringsharing I noticed a lot of these errors, so this issue is probably present throughout the tree --- src/bin/entrance_login.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/entrance_login.c b/src/bin/entrance_login.c index e68c7aa..27a8c45 100644 --- a/src/bin/entrance_login.c +++ b/src/bin/entrance_login.c @@ -353,9 +353,12 @@ _login_xsession_update(Evas_Object *obj) icon = elm_object_part_content_get(o, "icon"); if (login->session->icon) { + Eina_Stringshare *path; if (!icon) icon = elm_icon_add(o); - elm_image_file_set(icon, login->session->icon, NULL); + path = entrance_gui_theme_path_get(); + elm_image_file_set(icon, path, login->session->icon); + eina_stringshare_del(path); elm_object_part_content_set(o, "icon", icon); } else