aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2013-01-17 22:11:27 +0000
committerBruno Dilly <bdilly@profusion.mobi>2013-01-17 22:11:27 +0000
commit0591cf9cd95afa8a591b5aff8cabcbc99552bc1f (patch)
treef9988262a5708d448e18fd87932aac4270d4b4cc /legacy/elementary/src/lib/elm_win.c
parentelm: Place elm_win children inside the layout and remove resize_obj code (diff)
downloadefl-0591cf9cd95afa8a591b5aff8cabcbc99552bc1f.tar.gz
elm: Add local main menu to elm_win
Patch by: Henrique Dante de Almeida <hdante@profusion.mobi> SVN revision: 82959
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 6bd5382200..b2027194ea 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1,6 +1,7 @@
#include <Elementary.h>
#include <Elementary_Cursor.h>
#include "elm_priv.h"
+#include "elm_widget_menu.h"
EAPI Eo_Op ELM_OBJ_WIN_BASE_ID = EO_NOOP;
@@ -3593,7 +3594,9 @@ _main_menu_get(Eo *obj, void *_pd, va_list *list)
}
else
{
- //TODO: Local version.
+ edje_object_part_swallow(sd->layout, "elm.swallow.menu", sd->main_menu);
+ edje_object_signal_emit(sd->layout, "elm,action,show_menu", "elm");
+ _elm_menu_menu_bar_set(sd->main_menu, EINA_TRUE);
}
end:
*ret = sd->main_menu;