forked from enlightenment/efl
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
This commit is contained in:
parent
f1ab68d14d
commit
115037b221
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue