From 4e63c16dcf0f3d2de1026f1177660a8c68bc8d97 Mon Sep 17 00:00:00 2001 From: Seunggyun Kim Date: Thu, 19 Jul 2012 17:37:17 +0900 Subject: [PATCH] [elm_image.c, elm_icon.c] bug fix : elm_icon is disappeared when theme hook is called. changeset [74163] --- src/lib/elm_icon.c | 3 +++ src/lib/elm_image.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/lib/elm_icon.c b/src/lib/elm_icon.c index 187df0e..7ae86cb 100644 --- a/src/lib/elm_icon.c +++ b/src/lib/elm_icon.c @@ -375,6 +375,9 @@ an icon with a different resolution. */ _els_smart_icon_scale_down_set(wd->img, wd->scale_down); _els_smart_icon_smooth_scale_set(wd->img, wd->smooth); _els_smart_icon_fill_inside_set(wd->img, !(wd->fill_outside)); + + evas_object_size_hint_min_get(obj, &minw, &minh); + if (wd->no_scale) _els_smart_icon_scale_set(wd->img, 1.0); else { diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c index 5d59251..c8bee11 100644 --- a/src/lib/elm_image.c +++ b/src/lib/elm_image.c @@ -68,6 +68,9 @@ _sizing_eval(Evas_Object *obj) _els_smart_icon_scale_down_set(wd->img, wd->scale_down); _els_smart_icon_smooth_scale_set(wd->img, wd->smooth); _els_smart_icon_fill_inside_set(wd->img, !(wd->fill_outside)); + + evas_object_size_hint_min_get(obj, &minw, &minh); + if (wd->no_scale) _els_smart_icon_scale_set(wd->img, 1.0); else { -- 2.7.4