svn update: 51469 (latest:51480)
[framework/uifw/elementary.git] / src / bin / test_icon_desktops.c
index 3a63ad0..96e14f1 100644 (file)
@@ -24,16 +24,20 @@ desk_gl_icon_get(const void *data, Evas_Object *obj, const char *part)
    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("default", d->icon, 48);
-   if (!path)
+   path = efreet_icon_path_find(getenv("E_ICON_THEME"), d->icon, 48);
+   if (!path) 
      {
-        path = efreet_icon_path_find("hicolor", d->icon, 48);
+        path = efreet_icon_path_find("default", d->icon, 48);
         if (!path)
           {
-             path = efreet_icon_path_find("gnome", d->icon, 48);
+             path = efreet_icon_path_find("hicolor", d->icon, 48);
              if (!path)
                {
-                  path = efreet_icon_path_find("Human", d->icon, 48);
+                  path = efreet_icon_path_find("gnome", d->icon, 48);
+                  if (!path)
+                    {
+                       path = efreet_icon_path_find("Human", d->icon, 48);
+                    }
                }
           }
      }