NeoMutt  2025-09-05-55-g97fc89
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h File Reference

GUI display the mailboxes in a side panel. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void sb_init (void)
 Set up the Sidebar.
 
void sb_cleanup (void)
 Clean up the Sidebar.
 
int sb_function_dispatcher (struct MuttWindow *win, int op)
 Perform a Sidebar function - Implements function_dispatcher_t -.
 

Detailed Description

GUI display the mailboxes in a side panel.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file lib.h.

Function Documentation

◆ sb_init()

void sb_init ( void )

Set up the Sidebar.

Definition at line 204 of file sidebar.c.

205{
207
208 // Set a default style
210 ac->attrs = A_UNDERLINE;
211
212 // Listen for dialog creation events
215}
struct AttrColor * simple_color_get(enum ColorId cid)
Get the colour of an object by its ID.
Definition simple.c:95
@ MT_COLOR_SIDEBAR_HIGHLIGHT
Select cursor.
Definition color.h:72
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Definition command.c:51
struct MuttWindow * AllDialogsWindow
Parent of all Dialogs.
Definition dialog.c:80
int sb_insertion_window_observer(struct NotifyCallback *nc)
Notification that a Window has changed - Implements observer_t -.
Definition observer.c:473
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
Definition notify.c:191
@ NT_WINDOW
MuttWindow has changed, NotifyWindow, EventWindow.
Definition notify_type.h:57
static const struct Command SbCommands[]
Sidebar Commands.
Definition sidebar.c:49
A curses colour and its attributes.
Definition attr.h:66
int attrs
Text attributes, e.g. A_BOLD.
Definition attr.h:69
Container for Accounts, Notifications.
Definition neomutt.h:43
struct CommandArray commands
NeoMutt commands.
Definition neomutt.h:51
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sb_cleanup()

void sb_cleanup ( void )

Clean up the Sidebar.

Definition at line 220 of file sidebar.c.

221{
225}
void mutt_list_free(struct ListHead *h)
Free a List AND its strings.
Definition list.c:123
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
Definition notify.c:230
struct ListHead SidebarPinned
List of mailboxes to always display in the sidebar.
Definition sidebar.c:44
+ Here is the call graph for this function:
+ Here is the caller graph for this function: