From c6930ed149e3031604866cd8a698d2c690b397b8 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 29 Jun 2011 14:58:37 +0000 Subject: [PATCH] EPhoto: Fix issue with buttons in theme & single browser mode (if the elm fingersize was set to small (5) then the buttons where barely clickable). Ok'd by Okra. SVN revision: 60822 --- src/bin/ephoto_single_browser.c | 2 ++ src/bin/ephoto_thumb_browser.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c index ad76fb4..f1848a1 100644 --- a/src/bin/ephoto_single_browser.c +++ b/src/bin/ephoto_single_browser.c @@ -804,6 +804,8 @@ _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); 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 309445d..e3418fe 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -476,6 +476,8 @@ _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); elm_button_icon_set(but, ic); evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);