52 if (!(*sbep)->is_hidden)
75 if ((*sbep)->mailbox->has_new || ((*sbep)->mailbox->msg_unread != 0))
88 struct SbEntry **sbep = NULL, **prev = NULL;
91 if (!(*sbep)->is_hidden)
114 struct SbEntry **sbep = NULL, **prev = NULL;
117 if ((*sbep)->mailbox->has_new || ((*sbep)->mailbox->msg_unread != 0))
204 if ((max_entries == 0) || (wdata->
hil_index < 0))
245 int orig_hil_index =
wdata->hil_index;
253 if (orig_hil_index ==
wdata->hil_index)
271 int orig_hil_index =
wdata->hil_index;
279 if (orig_hil_index ==
wdata->hil_index)
315 if ((max_entries == 0) || (
wdata->hil_index < 0))
321 (c_sidebar_next_new_wrap &&
377 if (!win || !win->
wdata)
#define ARRAY_IDX(head, elem)
Return the index of an element of the array.
#define ARRAY_EMPTY(head)
Check if an array is empty.
#define ARRAY_FOREACH_TO(elem, head, to)
Iterate from the beginning to an index.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_FOREACH_FROM(elem, head, from)
Iterate from an index to the end.
#define ARRAY_GET(head, idx)
Return the element at index.
#define ARRAY_FOREACH_FROM_TO(elem, head, from, to)
Iterate between two indexes.
int bool_str_toggle(struct ConfigSubset *sub, const char *name, struct Buffer *err)
Toggle the value of a bool.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
struct MuttWindow * dialog_find(struct MuttWindow *win)
Find the parent Dialog of a Window.
const char * dispatcher_get_retval_name(int rv)
Get the name of a return value.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_UNKNOWN
Unknown function.
@ FR_NO_ACTION
Valid function - no action performed.
void index_change_folder(struct MuttWindow *dlg, struct Mailbox *m)
Change the current folder, cautiously.
int sb_function_dispatcher(struct MuttWindow *win, int op)
Perform a Sidebar function - Implements function_dispatcher_t -.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
GUI manage the main index (list of emails)
@ LL_DEBUG1
Log at debug level 1.
Convenience wrapper for the library headers.
bool mutt_window_is_visible(struct MuttWindow *win)
Is the Window visible?
void mutt_window_reflow(struct MuttWindow *win)
Resize a Window and its children.
#define WA_RECALC
Recalculate the contents of the Window.
const char * opcodes_get_name(int op)
Get the name of an opcode.
void * wdata
Private data.
WindowActionFlags actions
Actions to be performed, e.g. WA_RECALC.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
Info about folders in the sidebar.