cedric pushed a commit to branch enlightenment-0.17.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=bf4cb223cc2779269b6c01e45dc25b4ef27fba2e

commit bf4cb223cc2779269b6c01e45dc25b4ef27fba2e
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Apr 30 12:32:31 2015 -0400

    try hicolor icon theme as fallback for fdo icon setting if user's theme 
fails
    
    fix T2142
---
 src/bin/e_icon.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_icon.c b/src/bin/e_icon.c
index 02c8d0d..43591a4 100644
--- a/src/bin/e_icon.c
+++ b/src/bin/e_icon.c
@@ -444,7 +444,12 @@ e_icon_fdo_icon_set(Evas_Object *obj, const char *icon)
    if (!sd->fdo) return EINA_FALSE;
 
    path = efreet_icon_path_find(e_config->icon_theme, sd->fdo, sd->size);
-   if (!path) return EINA_FALSE;
+   if (!path)
+     {
+        if (e_util_strcmp(e_config->icon_theme, "hicolor"))
+          path = efreet_icon_path_find("hicolor", sd->fdo, sd->size);
+        if (!path) return EINA_FALSE;
+     }
 
    len = strlen(icon);
    if ((len > 4) && (!strcasecmp(icon + len - 4, ".edj")))
@@ -904,8 +909,13 @@ _e_icon_fdo_reload(void *data)
    sd->fdo_reload_timer = NULL;
    sd->size = MAX(sd->w, sd->h);
    path = efreet_icon_path_find(e_config->icon_theme, sd->fdo, sd->size);
-   if (!path) return EINA_FALSE;
-   
+   if (!path)
+     {
+        if (e_util_strcmp(e_config->icon_theme, "hicolor"))
+          path = efreet_icon_path_find("hicolor", sd->fdo, sd->size);
+        if (!path) return EINA_FALSE;
+     }
+
    /* smart code here */
    evas_object_image_load_size_set(sd->obj, sd->size, sd->size);
    evas_object_image_file_set(sd->obj, path, NULL);

-- 


Reply via email to