summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/luncher/bar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c
index 1b7ceac..93ad89f 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -767,10 +767,12 @@ _bar_icon_preview_client_add(Icon *ic, E_Client *ec)
767 Evas_Object *layout, *label, *img; 767 Evas_Object *layout, *label, *img;
768 768
769 layout = elm_layout_add(ic->preview_box); 769 layout = elm_layout_add(ic->preview_box);
770 edje_object_update_hints_set(elm_layout_edje_get(layout), EINA_TRUE);
770 evas_object_data_set(layout, "icon", ic); 771 evas_object_data_set(layout, "icon", ic);
771 e_theme_edje_object_set(layout, "e/gadget/luncher/preview", 772 e_theme_edje_object_set(layout, "e/gadget/luncher/preview",
772 "e/gadget/luncher/preview"); 773 "e/gadget/luncher/preview");
773 evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 774 evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
775 evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
774 evas_object_event_callback_add(layout, EVAS_CALLBACK_MOUSE_IN, 776 evas_object_event_callback_add(layout, EVAS_CALLBACK_MOUSE_IN,
775 _bar_icon_preview_item_mouse_in, ic); 777 _bar_icon_preview_item_mouse_in, ic);
776 evas_object_event_callback_add(layout, EVAS_CALLBACK_MOUSE_OUT, 778 evas_object_event_callback_add(layout, EVAS_CALLBACK_MOUSE_OUT,
@@ -787,6 +789,7 @@ _bar_icon_preview_client_add(Icon *ic, E_Client *ec)
787 evas_object_show(label); 789 evas_object_show(label);
788 790
789 img = e_comp_object_util_mirror_add(ec->frame); 791 img = e_comp_object_util_mirror_add(ec->frame);
792 edje_object_update_hints_set(elm_layout_edje_get(img), EINA_TRUE);
790 edje_extern_object_aspect_set(img, EDJE_ASPECT_CONTROL_BOTH, ec->client.w, ec->client.h); 793 edje_extern_object_aspect_set(img, EDJE_ASPECT_CONTROL_BOTH, ec->client.w, ec->client.h);
791 evas_object_size_hint_min_set(img, ic->inst->cfg->preview_size, ic->inst->cfg->preview_size); 794 evas_object_size_hint_min_set(img, ic->inst->cfg->preview_size, ic->inst->cfg->preview_size);
792 elm_layout_content_set(layout, "e.swallow.icon", img); 795 elm_layout_content_set(layout, "e.swallow.icon", img);