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
This commit is contained in:
parent
017fa038be
commit
c6930ed149
|
@ -804,6 +804,8 @@ _button_add(Evas_Object *box, const char *image)
|
||||||
|
|
||||||
ic = elm_icon_add(but);
|
ic = elm_icon_add(but);
|
||||||
elm_icon_file_set(ic, image, NULL);
|
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);
|
elm_button_icon_set(but, ic);
|
||||||
evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
|
|
|
@ -476,6 +476,8 @@ _button_add(Evas_Object *box, const char *image)
|
||||||
|
|
||||||
ic = elm_icon_add(but);
|
ic = elm_icon_add(but);
|
||||||
elm_icon_file_set(ic, image, NULL);
|
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);
|
elm_button_icon_set(but, ic);
|
||||||
evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
|
|
Loading…
Reference in New Issue