diff options
author | okan <okan> | 2012-11-07 14:39:44 +0000 |
---|---|---|
committer | okan <okan> | 2012-11-07 14:39:44 +0000 |
commit | 4b84287d1935144625bd506facbf56e8470ce5be (patch) | |
tree | 45eb44692584068d48048d73233c88badb846f3f /calmwm.h | |
parent | dabc05034f56a14fb85e7b448b489f52a60ee600 (diff) | |
download | cwm-4b84287d1935144625bd506facbf56e8470ce5be.tar.gz cwm-4b84287d1935144625bd506facbf56e8470ce5be.tar.xz cwm-4b84287d1935144625bd506facbf56e8470ce5be.zip |
tab completion support for menus; from Alexander Polakov.
ok sthen@ on an older incarnation
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h index 5d96485..e08269b 100644 --- a/calmwm.h +++ b/calmwm.h @@ -73,6 +73,10 @@ #define CWM_RCYCLE 0x0002 #define CWM_INGROUP 0x0004 +/* menu */ +#define CWM_MENU_DUMMY 0x0001 +#define CWM_MENU_FILE 0x0002 + #define KBTOGROUP(X) ((X) - 1) union arg { @@ -260,7 +264,7 @@ TAILQ_HEAD(cmd_q, cmd); struct menu { TAILQ_ENTRY(menu) entry; TAILQ_ENTRY(menu) resultentry; -#define MENU_MAXENTRY 50 +#define MENU_MAXENTRY 200 char text[MENU_MAXENTRY + 1]; char print[MENU_MAXENTRY + 1]; void *ctx; @@ -355,6 +359,10 @@ void search_match_client(struct menu_q *, struct menu_q *, char *); void search_match_exec(struct menu_q *, struct menu_q *, char *); +void search_match_exec_path(struct menu_q *, struct menu_q *, + char *); +void search_match_path_any(struct menu_q *, struct menu_q *, + char *); void search_match_text(struct menu_q *, struct menu_q *, char *); void search_print_client(struct menu *, int); |