]> Dogcows Code - chaz/openbox/blobdiff - openbox/menu.h
add pipe-menus
[chaz/openbox] / openbox / menu.h
index f2aaf1ff8021b22108c26032c995eeee67ad0cd5..b0f39b7b53b9b4258bc615e355e10cb6d15bd12e 100644 (file)
@@ -23,8 +23,6 @@ typedef void (*ObMenuUpdateFunc)(struct _ObMenuFrame *frame, gpointer data);
 typedef void (*ObMenuExecuteFunc)(struct _ObMenuEntry *entry, gpointer data);
 typedef void (*ObMenuDestroyFunc)(struct _ObMenu *menu, gpointer data);
 
-extern ObParseInst *menu_parse_inst;
-
 struct _ObMenu
 {
     /* Name of the menu. Used in the showmenu action. */
@@ -32,6 +30,9 @@ struct _ObMenu
     /* Displayed title */
     gchar *title;
 
+    /* Command to execute to rebuild the menu */
+    gchar *execute;
+
     /* ObMenuEntry list */
     GList *entries;
 
@@ -94,6 +95,9 @@ void menu_shutdown();
 ObMenu* menu_new(gchar *name, gchar *title, gpointer data);
 void menu_free(ObMenu *menu);
 
+/* Repopulate a pipe-menu by running its command */
+void menu_pipe_execute(ObMenu *self);
+
 void menu_show(gchar *name, gint x, gint y, struct _ObClient *client);
 
 void menu_set_update_func(ObMenu *menu, ObMenuUpdateFunc func);
This page took 0.021067 seconds and 4 git commands to generate.