* Also load icons from a given full path, not only by the theme-name.

This fix some (not showed) icons, expecially with the configmenu module.

SVN revision: 41177
This commit is contained in:
Davide Andreoli 2009-06-23 20:52:04 +00:00
parent 3481e3e5ae
commit 6efe302d22
1 changed files with 5 additions and 0 deletions

View File

@ -443,6 +443,11 @@ e_util_menu_item_edje_icon_set(E_Menu_Item *mi, const char *name)
char buf[4096];
if ((!name) || (!name[0])) return 0;
if (name[0]=='/' && ecore_file_exists(name))
{
e_menu_item_icon_edje_set(mi, name, "icon");
return 1;
}
snprintf(buf, sizeof(buf), "e/icons/%s", name);
file = e_theme_edje_file_get("base/theme/icons", buf);
if (file[0])