summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorStephen Houston <stephen@localhost.localdomain>2017-10-11 14:08:15 -0500
committerStephen Houston <stephen@localhost.localdomain>2017-10-11 14:08:15 -0500
commitc234be94859be71be593e2f2887517c2430fbb82 (patch)
treefacac331a2a81a45145f15a7458361521d238bef /src/modules
parent213bb6ba322d58070071d75b6dec0d8c9a8c2542 (diff)
Luncher: Don't manually apply min sized aspect - The edje aspect set call handles this.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/luncher/bar.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c
index 75b3c37..1b7ceac 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -765,7 +765,6 @@ static void
765_bar_icon_preview_client_add(Icon *ic, E_Client *ec) 765_bar_icon_preview_client_add(Icon *ic, E_Client *ec)
766{ 766{
767 Evas_Object *layout, *label, *img; 767 Evas_Object *layout, *label, *img;
768 double aspect = 1.0;
769 768
770 layout = elm_layout_add(ic->preview_box); 769 layout = elm_layout_add(ic->preview_box);
771 evas_object_data_set(layout, "icon", ic); 770 evas_object_data_set(layout, "icon", ic);
@@ -787,11 +786,9 @@ _bar_icon_preview_client_add(Icon *ic, E_Client *ec)
787 elm_layout_content_set(layout, "e.swallow.title", label); 786 elm_layout_content_set(layout, "e.swallow.title", label);
788 evas_object_show(label); 787 evas_object_show(label);
789 788
790 aspect = (double)ec->client.w / (double)ec->client.h;
791
792 img = e_comp_object_util_mirror_add(ec->frame); 789 img = e_comp_object_util_mirror_add(ec->frame);
793 edje_extern_object_aspect_set(img, EDJE_ASPECT_CONTROL_BOTH, ec->client.w, ec->client.h); 790 edje_extern_object_aspect_set(img, EDJE_ASPECT_CONTROL_BOTH, ec->client.w, ec->client.h);
794 evas_object_size_hint_min_set(img, ic->inst->cfg->preview_size * aspect, ic->inst->cfg->preview_size); 791 evas_object_size_hint_min_set(img, ic->inst->cfg->preview_size, ic->inst->cfg->preview_size);
795 elm_layout_content_set(layout, "e.swallow.icon", img); 792 elm_layout_content_set(layout, "e.swallow.icon", img);
796 if (evas_object_image_alpha_get(img)) 793 if (evas_object_image_alpha_get(img))
797 elm_layout_signal_emit(layout, "e,state,icon,alpha", "e"); 794 elm_layout_signal_emit(layout, "e,state,icon,alpha", "e");