123{
129
133
136
138
141
144 dlg->
focus = panel_pager;
146
150
154
155 int rc;
156
158 if (c_pager)
159 {
161
165 {
167 rc = -1;
168 }
169 else
170 {
171 rc = 0;
172 }
175 }
176 else
177 {
179 }
180
183 return rc;
184}
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
void mutt_endwin(void)
Shutdown curses.
void dialog_push(struct MuttWindow *dlg)
Display a Window to the user.
void dialog_pop(void)
Hide a Window from the user.
void buf_file_expand_fmt_quote(struct Buffer *dest, const char *fmt, const char *src)
Replace s in a string with a filename.
void mutt_file_unlink(const char *s)
Delete a file, carefully.
int dlg_pager(struct PagerView *pview)
Display an email, attachment, or help, in a window -.
static int dopager_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
static int dopager_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
void index_shared_data_free(struct MuttWindow *win, void **ptr)
Free Shared Index Data - Implements MuttWindow::wdata_free() -.
struct IndexSharedData * index_shared_data_new(void)
Create new Index Data.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
void mutt_window_free(struct MuttWindow **ptr)
Free a Window and its children.
void mutt_window_add_child(struct MuttWindow *parent, struct MuttWindow *child)
Add a child to Window.
struct MuttWindow * mutt_window_new(enum WindowType type, enum MuttWindowOrientation orient, enum MuttWindowSize size, int cols, int rows)
Create a new Window.
struct MuttWindow * window_find_child(struct MuttWindow *win, enum WindowType type)
Recursively find a child Window of a given type.
@ WT_CUSTOM
Window with a custom drawing function.
@ WT_STATUS_BAR
Status Bar containing extra info about the Index/Pager/etc.
@ WT_DLG_PAGER
Pager Dialog, dlg_pager()
@ MUTT_WIN_ORIENT_VERTICAL
Window uses all available vertical space.
#define MUTT_WIN_SIZE_UNLIMITED
Use as much space as possible.
@ MUTT_WIN_SIZE_MAXIMISE
Window wants as much space as possible.
@ NT_WINDOW
MuttWindow has changed, NotifyWindow, EventWindow.
@ NT_CONFIG
Config has changed, NotifyConfig, EventConfig.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
int mutt_system(const char *cmd)
Run an external command.
String manipulation buffer.
struct Notify * notify
Notifications: NotifyConfig, EventConfig.
Data shared between Index, Pager and Sidebar.
struct Email * email
Currently selected Email.
struct Notify * notify
Notifications: NotifyIndex, IndexSharedData.
struct MuttWindow * focus
Focused Window.
void * wdata
Private data.
struct Notify * notify
Notifications: NotifyWindow, EventWindow.
void(* wdata_free)(struct MuttWindow *win, void **ptr)
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.