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
This commit is contained in:
Mike Blumenkrantz 2014-05-04 23:29:38 -04:00
parent 76b58a54ce
commit e1e8691ec6
1 changed files with 4 additions and 1 deletions

View File

@ -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