set elm_image_fill_outside_set in utils 86/43986/1
authorSoohye Shin <soohye.shin@samsung.com>
Thu, 16 Jul 2015 02:24:29 +0000 (11:24 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Thu, 16 Jul 2015 02:24:29 +0000 (11:24 +0900)
Change-Id: I4a680c1a76d3888de1c44e0eecfac7ae02d850d2
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/utils.c
src/view/view_photo.c
src/view/view_recent.c
src/view/view_user_edit.c

index 21ea58d..cb24df5 100644 (file)
@@ -162,7 +162,7 @@ Evas_Object *utils_add_icon(Evas_Object *base, const char *file,
                return NULL;
        }
 
-       ic = elm_icon_add(base);
+       ic = elm_image_add(base);
        if (!ic) {
                _ERR("failed to add icon");
                return NULL;
@@ -172,6 +172,7 @@ Evas_Object *utils_add_icon(Evas_Object *base, const char *file,
 
        if (part)
                elm_object_part_content_set(base, part, ic);
+       elm_image_fill_outside_set(ic, EINA_TRUE);
 
        evas_object_show(ic);
 
index e8d4b6d..1360ce4 100644 (file)
@@ -253,7 +253,6 @@ static Evas_Object *_get_grid_content(void *data, Evas_Object *obj,
                        _ERR("failed to add image");
                        return NULL;
                }
-               elm_image_fill_outside_set(img, EINA_TRUE);
        }
 
        return img;
@@ -304,7 +303,6 @@ static void _add_viewer_popup(struct _priv *priv, char *file)
                evas_object_del(popup);
                return;
        }
-       elm_image_fill_outside_set(img, EINA_TRUE);
 
        elm_object_focus_set(cancel_btn, EINA_TRUE);
        priv->popup = popup;
index 811106b..9afbb96 100644 (file)
@@ -313,7 +313,6 @@ static struct _bar_item *_pack_item(struct _priv *priv, Evas_Object *box,
                free(bi);
                return NULL;
        }
-       elm_image_fill_outside_set(thumb, EINA_TRUE);
 
        ic = utils_add_icon(eo, di->focus_icon, PART_RECENT_ICON);
        if (!ic)
index 1add254..cbdf2fa 100644 (file)
@@ -237,13 +237,11 @@ static void _load_user_icon(struct _priv *priv, const char *file,
        icon = utils_add_icon(priv->photo, file, PART_USER_EDIT_PHOTO);
        if (!icon)
                _ERR("failed to add icon");
-       elm_image_fill_outside_set(icon, EINA_TRUE);
 
        focus_icon = utils_add_icon(priv->photo, focus_file,
                        PART_USER_EDIT_PHOTO_FOCUS);
        if (!focus_icon)
                _ERR("failed to add focus icon");
-       elm_image_fill_outside_set(focus_icon, EINA_TRUE);
 
        priv->icon = icon;
        priv->focus_icon = focus_icon;