fix icon finding for evry mime types

ticket #1988


SVN revision: 80810
This commit is contained in:
Mike Blumenkrantz 2012-12-13 10:34:52 +00:00
parent 39057aea4b
commit 4078be3fab
1 changed files with 9 additions and 3 deletions

View File

@ -430,8 +430,14 @@ evry_icon_theme_get(const char *icon, Evas *e)
} }
else if (!e_util_icon_theme_set(o, icon)) else if (!e_util_icon_theme_set(o, icon))
{ {
evas_object_del(o); char grp[1024];
o = NULL;
snprintf(grp, sizeof(grp), "fileman/mime/%s", icon);
if (!e_util_icon_theme_set(o, grp))
{
evas_object_del(o);
o = NULL;
}
} }
return o; return o;
@ -491,7 +497,7 @@ evry_util_icon_get(Evry_Item *it, Evas *e)
{ {
icon = efreet_mime_type_icon_get(file->mime, e_config->icon_theme, 128); icon = efreet_mime_type_icon_get(file->mime, e_config->icon_theme, 128);
/* XXX can do _ref ?*/ /* XXX can do _ref ?*/
if ((o = evry_icon_theme_get(icon, e))) if ((o = evry_icon_theme_get(icon, e)) || (o = evry_icon_theme_get(file->mime, e)))
{ {
/* it->icon = eina_stringshare_add(icon); */ /* it->icon = eina_stringshare_add(icon); */
return o; return o;