davemds pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1f6a633ea6fe7f6d20b9e2acf0ceede1b07e2617

commit 1f6a633ea6fe7f6d20b9e2acf0ceede1b07e2617
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Sat Jun 4 11:42:42 2016 +0200

    elm_config: force icons in preview to keep aspect ratio
    
    #SizeHintsMess... I really cannot understand why aspect_fixed is not 
respected :(
---
 src/bin/elementary/config.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bin/elementary/config.c b/src/bin/elementary/config.c
index 0f7874a..6c95cff 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);
 
    /////////////////////////////////////////////

-- 


Reply via email to