forked from enlightenment/efl
parent
8bfd0fec96
commit
522779e13c
|
@ -19,7 +19,6 @@ desk_gl_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UN
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
desk_gl_icon_get(void *data, Evas_Object *obj, const char *part)
|
desk_gl_icon_get(void *data, Evas_Object *obj, const char *part)
|
||||||
{
|
{
|
||||||
// FIXME: elm_icon should grok this
|
|
||||||
#ifdef ELM_EFREET
|
#ifdef ELM_EFREET
|
||||||
Efreet_Desktop *d = (Efreet_Desktop *)data;
|
Efreet_Desktop *d = (Efreet_Desktop *)data;
|
||||||
const char *path;
|
const char *path;
|
||||||
|
@ -28,28 +27,7 @@ desk_gl_icon_get(void *data, Evas_Object *obj, const char *part)
|
||||||
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
|
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
|
||||||
if (!(!strcmp(part, "elm.swallow.icon"))) return ic;
|
if (!(!strcmp(part, "elm.swallow.icon"))) return ic;
|
||||||
if (!d->icon) return ic;
|
if (!d->icon) return ic;
|
||||||
path = efreet_icon_path_find(getenv("E_ICON_THEME"), d->icon, 48);
|
elm_icon_standard_set(ic, d->icon);
|
||||||
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;
|
|
||||||
}
|
|
||||||
return ic;
|
return ic;
|
||||||
#else
|
#else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue