From 4538c84f5bebdfcec051134f4e6e03f830cb9b1f Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 8 Jan 2014 02:14:38 +0900 Subject: [PATCH] Ephoto: Make button's image size to follow vertical aspect. --- src/bin/ephoto_single_browser.c | 2 +- src/bin/ephoto_thumb_browser.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c index a48d23e..ec12a5b 100644 --- a/src/bin/ephoto_single_browser.c +++ b/src/bin/ephoto_single_browser.c @@ -813,7 +813,7 @@ _button_add(Evas_Object *box, const char *image) ic = elm_icon_add(but); elm_icon_standard_set(ic, image); - evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1); + evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); elm_object_content_set(but, ic); evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL); diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index 60c47bc..f2c4461 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -428,7 +428,7 @@ _button_add(Evas_Object *box, const char *image) ic = elm_icon_add(but); elm_icon_standard_set(ic, image); - evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1); + evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); elm_object_content_set(but, ic); evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);