summaryrefslogtreecommitdiff
path: root/plugins/menu/fifo_menu.c
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-08-11 21:19:17 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-08-11 21:19:17 +0000
commita4f023cf3a085d414a03e2d074e6eaa5258e4391 (patch)
tree81f05d59b980b6ce0a80e40a82471a1409d64e07 /plugins/menu/fifo_menu.c
parentd94fba72624f88f7e0457dc4eb9a0f6b1699f23b (diff)
Some fixes and new bugs. Someone else can do the menus because it is
clear no one gives a fuck what I think and no one else wants a window manager that doesn't suck the same balls as every other window manager.
Diffstat (limited to 'plugins/menu/fifo_menu.c')
-rw-r--r--plugins/menu/fifo_menu.c25
1 files changed, 23 insertions, 2 deletions
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 id="fonk" label="fonk" plugin="fifo_menu"></menu>
+ * Menu format
+ * <fifo_menu>
+ * <item label="GLOVE.png">
+ * <action name="execute">
+ * <execute>
+ * bsetbg "/home/woodblock/.openbox/backgrounds/GLOVE.png"
+ * </execute>
+ * </action>
+ * </item>
+ * </fifo_menu>
+ *
+ * If the attribute pid="true" is in the <menu>
+ */
+
#include <glib.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -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);