From c3b02749d72e0077aff85f29d7a28e5ba329b071 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 30 Aug 2003 05:15:12 +0000 Subject: add pipe-menus --- openbox/menu.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'openbox/menu.h') 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); -- cgit v1.2.3