seoz pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=4538c84f5bebdfcec051134f4e6e03f830cb9b1f

commit 4538c84f5bebdfcec051134f4e6e03f830cb9b1f
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Wed Jan 8 02:14:38 2014 +0900

    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);

-- 


Reply via email to