}
/**
- * alias_entry - Format a menu item for the alias list
+ * alias_make_entry - Format a menu item for the alias list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void alias_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void alias_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
mutt_expando_format(buf, buflen, 0, MuttIndexWindow->cols, NONULL(AliasFormat), alias_format_str,
(unsigned long) ((struct Alias **) menu->data)[num],
}
menu = mutt_menu_new(MENU_ALIAS);
- menu->menu_make_entry = alias_entry;
+ menu->menu_make_entry = alias_make_entry;
menu->menu_tag = alias_tag;
menu->title = _("Aliases");
menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_ALIAS, AliasHelp);
#endif
/**
- * folder_entry - Format a menu item for the folder browser
+ * folder_make_entry - Format a menu item for the folder browser
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void folder_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void folder_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct Folder folder;
#ifdef USE_NOTMUCH
/**
- * vfolder_entry - Format a menu item for the virtual folder list
+ * vfolder_make_entry - Format a menu item for the virtual folder list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void vfolder_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void vfolder_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct Folder folder;
goto bail;
}
menu = mutt_menu_new(MENU_FOLDER);
- menu->menu_make_entry = folder_entry;
+ menu->menu_make_entry = folder_make_entry;
menu->menu_search = select_file_search;
menu->title = title;
menu->data = state.entry;
#ifdef USE_NOTMUCH
if (flags & MUTT_SEL_VFOLDER)
{
- menu->menu_make_entry = vfolder_entry;
+ menu->menu_make_entry = vfolder_make_entry;
menu->menu_search = select_vfolder_search;
}
else
#endif
- menu->menu_make_entry = folder_entry;
+ menu->menu_make_entry = folder_make_entry;
menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_FOLDER,
#ifdef USE_NNTP
}
/**
- * snd_entry - Format a menu item for the attachment list
+ * snd_make_entry - Format a menu item for the attachment list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void snd_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void snd_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct AttachCtx *actx = menu->data;
struct Menu *menu, const char *p);
/**
- * compose_menu_redraw - Redraw the compose menu
+ * compose_custom_redraw - Redraw the compose menu
* @param menu Current menu
*/
-static void compose_menu_redraw(struct Menu *menu)
+static void compose_custom_redraw(struct Menu *menu)
{
struct ComposeRedrawData *rd = menu->redraw_data;
struct Menu *menu = mutt_menu_new(MENU_COMPOSE);
menu->offset = HDR_ATTACH;
- menu->menu_make_entry = snd_entry;
- menu->menu_tag = mutt_tag_attach;
+ menu->menu_make_entry = snd_make_entry;
+ menu->menu_tag = attach_tag;
#ifdef USE_NNTP
if (news)
menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_COMPOSE, ComposeNewsHelp);
else
#endif
menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_COMPOSE, ComposeHelp);
- menu->menu_custom_redraw = compose_menu_redraw;
+ menu->menu_custom_redraw = compose_custom_redraw;
menu->redraw_data = &rd;
mutt_menu_push_current(menu);
#endif
/**
- * index_menu_redraw - Redraw the index
+ * index_custom_redraw - Redraw the index
* @param menu Current Menu
*/
-static void index_menu_redraw(struct Menu *menu)
+static void index_custom_redraw(struct Menu *menu)
{
if (menu->redraw & REDRAW_FULL)
{
IndexNewsHelp :
#endif
IndexHelp);
- menu->menu_custom_redraw = index_menu_redraw;
+ menu->menu_custom_redraw = index_custom_redraw;
mutt_menu_push_current(menu);
if (!attach_msg)
if (menu->menu == MENU_MAIN)
{
- index_menu_redraw(menu);
+ index_custom_redraw(menu);
/* give visual indication that the next command is a tag- command */
if (tag)
}
/**
- * menu_search_generic - Search a menu for a item matching a regex
+ * generic_search - Search a menu for a item matching a regex
* @param m Menu to search
* @param re Regex to match
* @param n Index number
* @retval 0 Success
- * @retval >0 Error, e.g. REG_BADPAT
+ * @retval >0 Error, e.g. REG_NOMATCH
*/
-static int menu_search_generic(struct Menu *m, regex_t *re, int n)
+static int generic_search(struct Menu *m, regex_t *re, int n)
{
char buf[LONG_STRING];
p->helpwin = MuttHelpWindow;
p->messagewin = MuttMessageWindow;
p->menu_color = default_color;
- p->menu_search = menu_search_generic;
+ p->menu_search = generic_search;
return p;
}
struct Email;
struct Body;
-int mutt_tag_attach(struct Menu *menu, int n, int m);
+int attach_tag(struct Menu *menu, int n, int m);
int mutt_attach_display_loop(struct Menu *menu, int op, struct Email *e,
struct AttachCtx *actx, bool recv);
}
/**
- * history_entry - Format a menu item for the history list
+ * history_make_entry - Format a menu item for the history list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void history_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void history_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
char *entry = ((char **) menu->data)[num];
snprintf(title, sizeof(title), _("History '%s'"), buf);
struct Menu *menu = mutt_menu_new(MENU_GENERIC);
- menu->menu_make_entry = history_entry;
+ menu->menu_make_entry = history_make_entry;
menu->title = title;
menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_GENERIC, HistoryHelp);
mutt_menu_push_current(menu);
}
/**
- * crypt_entry - Format a menu item for the key selection list
+ * crypt_make_entry - Format a menu item for the key selection list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void crypt_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void crypt_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct CryptKeyInfo **key_table = menu->data;
struct CryptEntry entry;
struct Menu *menu = mutt_menu_new(menu_to_use);
menu->max = i;
- menu->menu_make_entry = crypt_entry;
+ menu->menu_make_entry = crypt_make_entry;
menu->help = helpstr;
menu->data = key_table;
mutt_menu_push_current(menu);
}
/**
- * pgp_entry - Format a menu item for the pgp key list
+ * pgp_make_entry - Format a menu item for the pgp key list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void pgp_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void pgp_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct PgpUid **KeyTable = menu->data;
struct PgpEntry entry;
menu = mutt_menu_new(MENU_PGP);
menu->max = i;
- menu->menu_make_entry = pgp_entry;
+ menu->menu_make_entry = pgp_make_entry;
menu->help = helpstr;
menu->data = KeyTable;
mutt_menu_push_current(menu);
}
/**
- * smime_entry - Format a menu item for the smime key list
+ * smime_make_entry - Format a menu item for the smime key list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void smime_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void smime_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct SmimeKey **Table = menu->data;
struct SmimeKey *this = Table[num];
/* Create the menu */
menu = mutt_menu_new(MENU_SMIME);
menu->max = table_index;
- menu->menu_make_entry = smime_entry;
+ menu->menu_make_entry = smime_make_entry;
menu->help = helpstr;
menu->data = table;
menu->title = title;
};
/**
- * pager_menu_redraw - Redraw the pager window
+ * pager_custom_redraw - Redraw the pager window
* @param pager_menu Pager Menu
*/
-static void pager_menu_redraw(struct Menu *pager_menu)
+static void pager_custom_redraw(struct Menu *pager_menu)
{
struct PagerRedrawData *rd = pager_menu->redraw_data;
char buffer[LONG_STRING];
rd.pager_window = mutt_mem_calloc(1, sizeof(struct MuttWindow));
pager_menu = mutt_menu_new(MENU_PAGER);
- pager_menu->menu_custom_redraw = pager_menu_redraw;
+ pager_menu->menu_custom_redraw = pager_custom_redraw;
pager_menu->redraw_data = &rd;
mutt_menu_push_current(pager_menu);
{
mutt_curs_set(0);
- pager_menu_redraw(pager_menu);
+ pager_custom_redraw(pager_menu);
if (BrailleFriendly)
{
}
/**
- * post_entry - Format a menu item for the email list
+ * post_make_entry - Format a menu item for the email list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void post_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void post_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct Context *ctx = menu->data;
char helpstr[LONG_STRING];
struct Menu *menu = mutt_menu_new(MENU_POST);
- menu->menu_make_entry = post_entry;
+ menu->menu_make_entry = post_make_entry;
menu->max = PostContext->mailbox->msg_count;
menu->title = _("Postponed Messages");
menu->data = PostContext;
}
/**
- * query_entry - Format a menu item for the query list
+ * query_make_entry - Format a menu item for the query list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void query_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void query_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct Entry *entry = &((struct Entry *) menu->data)[num];
snprintf(title, sizeof(title), _("Query '%s'"), buf);
menu = mutt_menu_new(MENU_QUERY);
- menu->menu_make_entry = query_entry;
+ menu->menu_make_entry = query_make_entry;
menu->menu_search = query_search;
menu->menu_tag = query_tag;
menu->title = title;
mutt_menu_pop_current(menu);
mutt_menu_destroy(&menu);
menu = mutt_menu_new(MENU_QUERY);
- menu->menu_make_entry = query_entry;
+ menu->menu_make_entry = query_make_entry;
menu->menu_search = query_search;
menu->menu_tag = query_tag;
menu->title = title;
}
/**
- * attach_entry - Format a menu item for the attachment list
+ * attach_make_entry - Format a menu item for the attachment list
* @param[out] buf Buffer in which to save string
* @param[in] buflen Buffer length
* @param[in] menu Menu containing aliases
* @param[in] num Index into the menu
*/
-static void attach_entry(char *buf, size_t buflen, struct Menu *menu, int num)
+static void attach_make_entry(char *buf, size_t buflen, struct Menu *menu, int num)
{
struct AttachCtx *actx = menu->data;
}
/**
- * mutt_tag_attach - Tag an attachment
+ * attach_tag - Tag an attachment
* @param menu Menu listing attachments
* @param n Index number of the attachment
* @param m Action: 0 untag, 1 tag, -1 toggle
* @retval num Net change in number of tagged attachments
*/
-int mutt_tag_attach(struct Menu *menu, int n, int m)
+int attach_tag(struct Menu *menu, int n, int m)
{
struct AttachCtx *actx = menu->data;
struct Body *cur = actx->idx[actx->v2r[n]]->content;
struct Menu *menu = mutt_menu_new(MENU_ATTACH);
menu->title = _("Attachments");
- menu->menu_make_entry = attach_entry;
- menu->menu_tag = mutt_tag_attach;
+ menu->menu_make_entry = attach_make_entry;
+ menu->menu_tag = attach_tag;
menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_ATTACH, AttachHelp);
mutt_menu_push_current(menu);