From 556eca046775a1e612006bff8ed5ca36c6216c93 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 31 Dec 2015 15:53:54 +1000 Subject: Fix menus, with an evil hack. ELM managed to break the main menu, it never showed, no matter what I did, but the woMan menus worked fine. Refactored both so they use generic functions for building the menu. Put the main menu in it's own window, which mostly works fine. I gotta rip the elm menu system a new one, or just drop it entirely and build my own. --- src/libraries/winFang.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libraries/winFang.h') diff --git a/src/libraries/winFang.h b/src/libraries/winFang.h index f2aebfd..91ceb0c 100644 --- a/src/libraries/winFang.h +++ b/src/libraries/winFang.h @@ -88,4 +88,8 @@ void winFangDel(winFang *win); Widget *widgetAdd(winFang *win, char *type, char *title, int x, int y, int w, int h); void widgetDel(Widget *wid); +Evas_Object *makeMainMenu(winFang *win); +Evas_Object *menuAdd(winFang *win, Evas_Object *tb, char *label); +void makeMainMenuFinish(winFang *win, Evas_Object *tb); + #endif -- cgit v1.1