66 if (!c_sidebar_visible)
70 if (
wdata->hil_index < 0)
77 return (*sbep)->mailbox;
96 if ((*sbep)->mailbox == m)
130 if ((*sbep)->mailbox != m)
133 struct SbEntry *sbe_remove = *sbep;
137 if (wdata->
opn_index == ARRAY_FOREACH_IDX)
148 if (wdata->
hil_index == ARRAY_FOREACH_IDX)
157 else if ((*sbep)->is_hidden)
194 (*sbep)->is_hidden = !(*sbep)->mailbox->visible;
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_REMOVE(head, elem)
Remove an entry from the array, shifting down the subsequent entries.
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_GET(head, idx)
Return the element at index.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Convenience wrapper for the config headers.
void commands_register(const struct Command *cmds, const size_t num_cmds)
Add commands to Commands array.
Convenience wrapper for the core headers.
struct MuttWindow * AllDialogsWindow
Parent of all Dialogs.
enum CommandResult sb_parse_sidebar_pin(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'sidebar_pin' command - Implements Command::parse() -.
enum CommandResult sb_parse_sidebar_unpin(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'sidebar_unpin' command - Implements Command::parse() -.
int sb_insertion_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
Convenience wrapper for the gui headers.
GUI manage the main index (list of emails)
void mutt_list_free(struct ListHead *h)
Free a List AND its strings.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
#define mutt_array_size(x)
Convenience wrapper for the library headers.
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
@ NT_WINDOW
MuttWindow has changed, NotifyWindow, EventWindow.
#define STAILQ_HEAD_INITIALIZER(head)
Data shared between Index, Pager and Sidebar.
struct Mailbox * mailbox
Current Mailbox.
char * realpath
Used for duplicate detection, context comparison, and the sidebar.
bool visible
True if a result of "mailboxes".
void * wdata
Private data.
struct Notify * notify
Notifications: NotifyWindow, EventWindow.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
Info about folders in the sidebar.
struct Mailbox * mailbox
Mailbox this represents.