X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fmenu.h;fp=lib-ui%2Fmenu.h;h=0b8c68c4a3c9d6aba9507be3dbcfd8fc93ccee80;hb=785bb3cb4dd83ec1071998a64af74e333d076347;hp=7c27264a69076500ab43ce481ccae18393c8ff92;hpb=6eb22b54ec44fd63bea311f472c9aadc7176c230;p=apps%2Fmadmutt.git diff --git a/lib-ui/menu.h b/lib-ui/menu.h index 7c27264..0b8c68c 100644 --- a/lib-ui/menu.h +++ b/lib-ui/menu.h @@ -29,8 +29,8 @@ #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 */ + const char *help; /* quickref for the current menu */ void *data; /* extra data for the current menu */ int current; /* current entry */ int max; /* the number of entries in the menu */ @@ -46,8 +46,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);