diff options
| author | Scott Moynes <smoynes@nexus.carleton.ca> | 2003-07-17 01:40:27 +0000 |
|---|---|---|
| committer | Scott Moynes <smoynes@nexus.carleton.ca> | 2003-07-17 01:40:27 +0000 |
| commit | 22ff8c587d815c021cad13f46094a31cc79243cf (patch) | |
| tree | 619056a5881cd5836ca0c47ae673fced623c5745 /openbox/menu.h | |
| parent | 5fce782499aa821c3a25bfdbf475066c2c21a7ed (diff) | |
Menu parsing updates for plugins.
FIFO menus are the only plugin that takes advantage of this.
Example:
<menu id="root" label="Openbox 3">
<menu id="fonk" label="fonk" plugin="fifo_menu">
</menu>
</menu>
This creates a FIFO ~/.openbox/fifo_menu/fonk to which you can send
menus to. The menus sent to it must be like
<fifo>
<item>
etc...
</fifo>
I think. If my memory serves me right.
It is all hideous, but I just wanted to experiment and see if it was
possible.
Diffstat (limited to 'openbox/menu.h')
| -rw-r--r-- | openbox/menu.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openbox/menu.h b/openbox/menu.h index 72a7ed24..2f3f9ac2 100644 --- a/openbox/menu.h +++ b/openbox/menu.h @@ -96,7 +96,14 @@ struct _ObMenuEntry RrAppearance *a_hilite; gint y; gint min_w; -}; +} MenuEntry; + +typedef struct PluginMenuCreateData{ + xmlDocPtr doc; + xmlNodePtr node; + ObMenu *parent; +} PluginMenuCreateData; + void menu_startup(); void menu_shutdown(); @@ -147,5 +154,7 @@ void menu_entry_fire(ObMenuEntry *self); 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 menu_control_mouseover(ObMenuEntry *entry, gboolean enter); #endif |
