diff options
author | Dave Andreoli <dave@gurumeditation.it> | 2016-06-04 11:42:42 +0200 |
---|---|---|
committer | Dave Andreoli <dave@gurumeditation.it> | 2016-06-04 11:42:42 +0200 |
commit | 1f6a633ea6fe7f6d20b9e2acf0ceede1b07e2617 (patch) | |
tree | 1b932736897b9a62b988f0beb0bae33db80da996 | |
parent | d77dd8d9f130a8b9d4700a6ee75c40c83f624bc8 (diff) | |
download | efl-1f6a633ea6fe7f6d20b9e2acf0ceede1b07e2617.tar.gz |
elm_config: force icons in preview to keep aspect ratio
#SizeHintsMess... I really cannot understand why aspect_fixed is not respected :(
-rw-r--r-- | src/bin/elementary/config.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bin/elementary/config.c b/src/bin/elementary/config.c index 0f7874aee4..6c95cffe6a 100644 --- a/src/bin/elementary/config.c +++ b/src/bin/elementary/config.c @@ -1545,13 +1545,12 @@ _icon_preview_icon_add(const char *icon, const char *theme) ic = elm_icon_add(icon_preview_frame); elm_image_aspect_fixed_set(ic, EINA_TRUE); - evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(ic, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_min_set(ic, 48, 48); elm_box_pack_end(icon_preview_frame, ic); evas_object_show(ic); if (strcmp(theme, ELM_CONFIG_ICON_THEME_ELEMENTARY)) - elm_image_file_set(ic, efreet_icon_path_find(theme, icon, 96), NULL); + elm_image_file_set(ic, efreet_icon_path_find(theme, icon, 48), NULL); } @@ -2310,7 +2309,7 @@ _status_config_icons(Evas_Object *win, rc = evas_object_rectangle_add(evas_object_evas_get(win)); evas_object_size_hint_weight_set(rc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_min_set(rc, 0, 200); + evas_object_size_hint_min_set(rc, 0, 130); elm_table_pack(tb, rc, 0, 1, 1, 1); ///////////////////////////////////////////// |