diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-30 05:15:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-30 05:15:12 +0000 |
| commit | c3b02749d72e0077aff85f29d7a28e5ba329b071 (patch) | |
| tree | bb65fa08be3c4e7b0a33d5b1232c0f4dfdef87ae /openbox/menu.h | |
| parent | 3ff8eb037e9a0ea5d4c8ffd65831eb01a00f1de7 (diff) | |
add pipe-menus
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); |
