#include <glib.h>
struct _ObClient;
+struct _ObParseInst;
typedef struct _ObMenu ObMenu;
typedef struct _ObMenuEntry ObMenuEntry;
char *label;
ObMenu *parent;
- Action *action;
+ ObAction *action;
ObMenuEntryRenderType render_type;
gboolean hilite;
} MenuEntry;
typedef struct PluginMenuCreateData{
+ struct _ObParseInst *parse_inst;
xmlDocPtr doc;
xmlNodePtr node;
ObMenu *parent;
void menu_startup();
void menu_shutdown();
+void menu_parse();
+
void menu_noop();
#define menu_new(l, n, p) \
void menu_clear(ObMenu *self);
-ObMenuEntry *menu_entry_new_full(char *label, Action *action,
+ObMenuEntry *menu_entry_new_full(char *label, ObAction *action,
ObMenuEntryRenderType render_type,
gpointer submenu);
void menu_render_full(ObMenu *self);
/*so plugins can call it? */
-void parse_menu_full(xmlDocPtr doc, xmlNodePtr node, void *data, gboolean new);
+void parse_menu_full(struct _ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
+ void *data, gboolean new);
void menu_control_mouseover(ObMenuEntry *entry, gboolean enter);
void menu_control_keyboard_nav(unsigned int key);
#endif