summaryrefslogtreecommitdiffstats
path: root/mutt_menu.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-04-27 17:56:51 -0700
committerKevin McCarthy <kevin@8t8.us>2016-04-27 17:56:51 -0700
commit26b9d967846742ea90ddc37a8b0dd71dde2e0be6 (patch)
tree06ab458ca63e880f090b56ac2c4b1aa48b8bd6b0 /mutt_menu.h
parent79728dfeef62bbd27842019857105273be411e68 (diff)
Modify the menu code to use windows.
Change menu.c to use the mutt_window_t structures and functions. The index/stats/help/message window pointers are stored inside the menu_t. This is useful for the pager, where the "index" we want to use is a mini-index.
Diffstat (limited to 'mutt_menu.h')
-rw-r--r--mutt_menu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/mutt_menu.h b/mutt_menu.h
index 8192019e..6f4ed74d 100644
--- a/mutt_menu.h
+++ b/mutt_menu.h
@@ -25,6 +25,7 @@
#include "keymap.h"
#include "mutt_regex.h"
+#include "mutt_curses.h"
#define REDRAW_INDEX (1)
#define REDRAW_MOTION (1<<1)
@@ -46,9 +47,13 @@ typedef struct menu_t
int max; /* the number of entries in the menu */
int redraw; /* when to redraw the screen */
int menu; /* menu definition for keymap entries. */
- int offset; /* which screen row to start the index */
+ int offset; /* row offset within the window to start the index */
int pagelen; /* number of entries per screen */
int tagprefix;
+ mutt_window_t *indexwin;
+ mutt_window_t *statuswin;
+ mutt_window_t *helpwin;
+ mutt_window_t *messagewin;
/* Setting dialog != NULL overrides normal menu behavior.
* In dialog mode menubar is hidden and prompt keys are checked before