From 1045079482453424f8320de99639390e3020eb72 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 12 Aug 2003 19:18:21 +0000 Subject: adjust for changes to the parsing api. split the menu into its own file. --- openbox/menu.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openbox/menu.h') diff --git a/openbox/menu.h b/openbox/menu.h index 2ecbb5cd..1adac022 100644 --- a/openbox/menu.h +++ b/openbox/menu.h @@ -9,6 +9,7 @@ #include struct _ObClient; +struct _ObParseInst; typedef struct _ObMenu ObMenu; typedef struct _ObMenuEntry ObMenuEntry; @@ -125,6 +126,7 @@ struct _ObMenuEntry } MenuEntry; typedef struct PluginMenuCreateData{ + struct _ObParseInst *parse_inst; xmlDocPtr doc; xmlNodePtr node; ObMenu *parent; @@ -134,6 +136,8 @@ typedef struct PluginMenuCreateData{ void menu_startup(); void menu_shutdown(); +void menu_parse(); + void menu_noop(); #define menu_new(l, n, p) \ @@ -190,7 +194,8 @@ void menu_render(ObMenu *self); 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 -- cgit v1.2.3