static Evas_Object *
desk_gl_icon_get(void *data, Evas_Object *obj, const char *part)
{
- // FIXME: elm_icon should grok this
#ifdef ELM_EFREET
Efreet_Desktop *d = (Efreet_Desktop *)data;
const char *path;
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
if (!(!strcmp(part, "elm.swallow.icon"))) return ic;
if (!d->icon) return ic;
- path = efreet_icon_path_find(getenv("E_ICON_THEME"), d->icon, 48);
- if (!path)
- {
- path = efreet_icon_path_find("default", d->icon, 48);
- if (!path)
- {
- path = efreet_icon_path_find("hicolor", d->icon, 48);
- if (!path)
- {
- path = efreet_icon_path_find("gnome", d->icon, 48);
- if (!path)
- {
- path = efreet_icon_path_find("Human", d->icon, 48);
- }
- }
- }
- }
- if (path)
- {
- elm_icon_file_set(ic, path, NULL);
- return ic;
- }
+ elm_icon_standard_set(ic, d->icon);
return ic;
#else
return NULL;