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:
parent
76b58a54ce
commit
e1e8691ec6
|
@ -353,9 +353,12 @@ _login_xsession_update(Evas_Object *obj)
|
||||||
icon = elm_object_part_content_get(o, "icon");
|
icon = elm_object_part_content_get(o, "icon");
|
||||||
if (login->session->icon)
|
if (login->session->icon)
|
||||||
{
|
{
|
||||||
|
Eina_Stringshare *path;
|
||||||
if (!icon)
|
if (!icon)
|
||||||
icon = elm_icon_add(o);
|
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);
|
elm_object_part_content_set(o, "icon", icon);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue