diff options
Diffstat (limited to 'openbox/menu.h')
| -rw-r--r-- | openbox/menu.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/menu.h b/openbox/menu.h index f2aaf1ff..b0f39b7b 100644 --- a/openbox/menu.h +++ b/openbox/menu.h @@ -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); |
