summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 00:49:26 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 00:49:26 +0100
commitcbd507fb133c6ab16a45e448cb83d2344d047703 (patch)
tree37f9c38feb4a1f3fdd8af5347b67967a54ef0574 /src/modules
parentdf0a64dc7ad348935af9a57ed1bef62b7424db58 (diff)
appmenu gadget - size items properly so they can be seen
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/appmenu/e_mod_appmenu_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/appmenu/e_mod_appmenu_render.c b/src/modules/appmenu/e_mod_appmenu_render.c
index 32c4240..64d1c78 100644
--- a/src/modules/appmenu/e_mod_appmenu_render.c
+++ b/src/modules/appmenu/e_mod_appmenu_render.c
@@ -221,7 +221,6 @@ appmenu_menu_of_instance_render(E_AppMenu_Instance *inst, E_AppMenu_Window *wind
221 item = edje_object_add(inst->evas); 221 item = edje_object_add(inst->evas);
222 e_theme_edje_object_set(item, "base/themes", "e/modules/appmenu/item"); 222 e_theme_edje_object_set(item, "base/themes", "e/modules/appmenu/item");
223 edje_object_part_text_set(item, "text", child->label); 223 edje_object_part_text_set(item, "text", child->label);
224 evas_object_box_append(inst->box, item);
225 edje_object_size_min_calc(item, &w, &h); 224 edje_object_size_min_calc(item, &w, &h);
226 225
227 if (!padding) 226 if (!padding)
@@ -247,6 +246,8 @@ appmenu_menu_of_instance_render(E_AppMenu_Instance *inst, E_AppMenu_Window *wind
247 sum_h = sum_h + h; 246 sum_h = sum_h + h;
248 } 247 }
249 evas_object_resize(item, w, h); 248 evas_object_resize(item, w, h);
249 evas_object_size_hint_min_set(item, w, h);
250 evas_object_box_append(inst->box, item);
250 evas_object_show(item); 251 evas_object_show(item);
251 evas_object_data_set(item, "gadcon", inst->gcc->gadcon); 252 evas_object_data_set(item, "gadcon", inst->gcc->gadcon);
252 evas_object_event_callback_add(item, EVAS_CALLBACK_MOUSE_DOWN, 253 evas_object_event_callback_add(item, EVAS_CALLBACK_MOUSE_DOWN,