From 514c204ebc7cebe6144151e3cfc5dd671007ee86 Mon Sep 17 00:00:00 2001 From: Stephen Houston Date: Wed, 29 Jun 2011 15:24:01 +0000 Subject: [PATCH] Fix devilhorns commit just a tad... Control aspect both ways as to not get misaligned icons in the buttons. SVN revision: 60823 --- 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 f1848a1..ead79cc 100644 --- a/src/bin/ephoto_single_browser.c +++ b/src/bin/ephoto_single_browser.c @@ -805,7 +805,7 @@ _button_add(Evas_Object *box, const char *image) ic = elm_icon_add(but); elm_icon_file_set(ic, image, NULL); evas_object_size_hint_min_set(ic, 16, 16); - evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); + evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1); elm_button_icon_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 e3418fe..c6fee7c 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -477,7 +477,7 @@ _button_add(Evas_Object *box, const char *image) ic = elm_icon_add(but); elm_icon_file_set(ic, image, NULL); evas_object_size_hint_min_set(ic, 16, 16); - evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); + evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1); elm_button_icon_set(but, ic); evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);