Revert "Icon: use size_hint_min instead of image_size to know the wanted size"
authorDave Andreoli <dave@gurumeditation.it>
Sun, 25 Jan 2015 15:48:21 +0000 (16:48 +0100)
committerDave Andreoli <dave@gurumeditation.it>
Sun, 25 Jan 2015 15:48:21 +0000 (16:48 +0100)
This reverts commit 75176a789981bd6b1ef0bfcc95793c896b5bde07.

Was not the correct solution, as min_size can be smaller than
the real wanted size. Need to find another solution.

Thanks TAsn to spot this

src/lib/elm_icon.c

index 284f1c94720a2aa93195647371dbbe43d966d48e..0b79a4222d608ac88df64995178b5c6bb2063876 100644 (file)
@@ -52,7 +52,7 @@ _icon_size_min_get(Evas_Object *icon)
 {
    int size;
 
-   evas_object_size_hint_min_get(icon, &size, NULL);
+   elm_image_object_size_get(icon, &size, NULL);
 
    return (size < 16) ? 16 : size;
 }