okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=c234be94859be71be593e2f2887517c2430fbb82

commit c234be94859be71be593e2f2887517c2430fbb82
Author: Stephen Houston <stephen@localhost.localdomain>
Date:   Wed Oct 11 14:08:15 2017 -0500

    Luncher: Don't manually apply min sized aspect - The edje aspect set call 
handles this.
---
 src/modules/luncher/bar.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c
index 75b3c377e..1b7ceacf3 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -765,7 +765,6 @@ static void
 _bar_icon_preview_client_add(Icon *ic, E_Client *ec)
 {
    Evas_Object *layout, *label, *img;
-   double aspect = 1.0;
 
    layout = elm_layout_add(ic->preview_box);
    evas_object_data_set(layout, "icon", ic);
@@ -787,11 +786,9 @@ _bar_icon_preview_client_add(Icon *ic, E_Client *ec)
    elm_layout_content_set(layout, "e.swallow.title", label);
    evas_object_show(label);
 
-   aspect = (double)ec->client.w / (double)ec->client.h;
-
    img = e_comp_object_util_mirror_add(ec->frame);
    edje_extern_object_aspect_set(img, EDJE_ASPECT_CONTROL_BOTH, ec->client.w, 
ec->client.h);
-   evas_object_size_hint_min_set(img, ic->inst->cfg->preview_size * aspect, 
ic->inst->cfg->preview_size);
+   evas_object_size_hint_min_set(img, ic->inst->cfg->preview_size, 
ic->inst->cfg->preview_size);
    elm_layout_content_set(layout, "e.swallow.icon", img);
    if (evas_object_image_alpha_get(img))
      elm_layout_signal_emit(layout, "e,state,icon,alpha", "e");

-- 


Reply via email to