From 22ff8c587d815c021cad13f46094a31cc79243cf Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Thu, 17 Jul 2003 01:40:27 +0000 Subject: Menu parsing updates for plugins. FIFO menus are the only plugin that takes advantage of this. Example: This creates a FIFO ~/.openbox/fifo_menu/fonk to which you can send menus to. The menus sent to it must be like etc... I think. If my memory serves me right. It is all hideous, but I just wanted to experiment and see if it was possible. --- openbox/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/plugin.c') diff --git a/openbox/plugin.c b/openbox/plugin.c index 747bde6f..cd17d215 100644 --- a/openbox/plugin.c +++ b/openbox/plugin.c @@ -176,7 +176,7 @@ void plugin_loadall() } } -void *plugin_create(char *name /* TODO */) +void *plugin_create(char *name, void *data) { Plugin *p = (Plugin *)g_datalist_get_data(&plugins, name); @@ -190,7 +190,7 @@ void *plugin_create(char *name /* TODO */) return NULL; } - return p->create(); + return p->create(data); } void plugin_destroy(char *name, void *data) -- cgit v1.2.3