X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fmenu.h;h=173c0944ae0c632b9870537ea41ebbd12f85b55c;hp=d90ec4fee12276481d09f1a61ef3f2fb4c8525d9;hb=dc726add2e8fe52be1f6859ea7cbe4651498eeb8;hpb=40fc05e11b8f95a9661e6e410a9e7b7da7824891 diff --git a/lib-ui/menu.h b/lib-ui/menu.h index d90ec4f..173c094 100644 --- a/lib-ui/menu.h +++ b/lib-ui/menu.h @@ -8,11 +8,8 @@ */ #ifndef _MUTT_MENU_H #define _MUTT_MENU_H -/* - * This file is named mutt_menu.h so it doesn't collide with ncurses menu.h - */ -#include +#include #include "keymap.h" @@ -29,8 +26,7 @@ #define M_MODEFMT "-- Madmutt: %s" typedef struct menu_t { - char *title; /* the title of this menu */ - char *help; /* quickref for the current menu */ + const char *title; /* the title of this menu */ void *data; /* extra data for the current menu */ int current; /* current entry */ int max; /* the number of entries in the menu */ @@ -46,8 +42,8 @@ typedef struct menu_t { * prompt keys override movement keys. */ char **dialog; /* dialog lines themselves */ - char *prompt; /* prompt for user, similar to mutt_multi_choice */ - char *keys; /* keys used in the prompt */ + const char *prompt; /* prompt for user, similar to mutt_multi_choice */ + const char *keys; /* keys used in the prompt */ /* callback to generate an index line for the requested element */ void (*make_entry) (char *, ssize_t, struct menu_t *, int);