Fix devilhorns commit just a tad... Control aspect both ways as to not get misaligned icons in the buttons.
SVN revision: 60823
This commit is contained in:
parent
c6930ed149
commit
514c204ebc
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue