X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fmenu%2Ffifo_menu.c;h=cb35579e549ef156710bcb59714be2aad5635264;hb=a4f023cf3a085d414a03e2d074e6eaa5258e4391;hp=3443294e2ced983b66c85e424956c6a71056bfb2;hpb=d94fba72624f88f7e0457dc4eb9a0f6b1699f23b;p=chaz%2Fopenbox diff --git a/plugins/menu/fifo_menu.c b/plugins/menu/fifo_menu.c index 3443294e..cb35579e 100644 --- a/plugins/menu/fifo_menu.c +++ b/plugins/menu/fifo_menu.c @@ -1,3 +1,25 @@ +/* + * $Header$ + * + * FFIO menu plugin + * Provides a menu from a FIFO located in ~/.openbox/fifo_menu/id + * Example: + * rc3: + * + * Menu format + * + * + * + * + * bsetbg "/home/woodblock/.openbox/backgrounds/GLOVE.png" + * + * + * + * + * + * If the attribute pid="true" is in the + */ + #include #include #include @@ -94,8 +116,7 @@ void fifo_menu_handler(int fd, void *d) { if (node && !xmlStrcasecmp(node->name, (const xmlChar*) "fifo_menu")) { - if ((node = parse_find_node("item", node->xmlChildrenNode))) - parse_menu_full(doc, node, menu, FALSE); + parse_menu_full(doc, node, menu, FALSE); } fifo_menu_clean_up(menu);