davemds pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=75176a789981bd6b1ef0bfcc95793c896b5bde07

commit 75176a789981bd6b1ef0bfcc95793c896b5bde07
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Sun Jan 25 15:48:41 2015 +0100

    Icon: use size_hint_min instead of image_size to know the wanted size
    
    This @fix fdo icons to load the correct image for the requested size.
    
    Whitout this the small images (16x16) was never used, because once a big
    (64x64 for example) image was loaded, that size was used as min.
    
    See the Icon Standard test for a better explanation
---
 src/lib/elm_icon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_icon.c b/src/lib/elm_icon.c
index 0b79a42..284f1c9 100644
--- a/src/lib/elm_icon.c
+++ b/src/lib/elm_icon.c
@@ -52,7 +52,7 @@ _icon_size_min_get(Evas_Object *icon)
 {
    int size;
 
-   elm_image_object_size_get(icon, &size, NULL);
+   evas_object_size_hint_min_get(icon, &size, NULL);
 
    return (size < 16) ? 16 : size;
 }

-- 


Reply via email to