X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenu.h;h=b0f39b7b53b9b4258bc615e355e10cb6d15bd12e;hb=009685bc4630a5deb3a48179450fb18e619c6e04;hp=f2aaf1ff8021b22108c26032c995eeee67ad0cd5;hpb=485fbff15da1a9001e610b3274747d76c1af57cb;p=chaz%2Fopenbox 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);