GUI display the mailboxes in a side panel. More...
#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include "private.h"
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "lib.h"
#include "color/lib.h"
#include "index/lib.h"
Go to the source code of this file.
Functions | |
struct Mailbox * | sb_get_highlight (struct MuttWindow *win) |
Get the Mailbox that's highlighted in the sidebar. | |
void | sb_add_mailbox (struct SidebarWindowData *wdata, struct Mailbox *m) |
Add a Mailbox to the Sidebar. | |
void | sb_remove_mailbox (struct SidebarWindowData *wdata, const struct Mailbox *m) |
Remove a Mailbox from the Sidebar. | |
void | sb_set_current_mailbox (struct SidebarWindowData *wdata, struct Mailbox *m) |
Set the current Mailbox. | |
void | sb_init (void) |
Set up the Sidebar. | |
void | sb_cleanup (void) |
Clean up the Sidebar. | |
Variables | |
struct ListHead | SidebarPinned = STAILQ_HEAD_INITIALIZER(SidebarPinned) |
List of mailboxes to always display in the sidebar. | |
static const struct Command | SbCommands [] |
Sidebar Commands. | |
GUI display the mailboxes in a side panel.
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 sidebar.c.
struct Mailbox * sb_get_highlight | ( | struct MuttWindow * | win | ) |
Get the Mailbox that's highlighted in the sidebar.
win | Sidebar Window |
ptr | Mailbox |
Definition at line 64 of file sidebar.c.
void sb_add_mailbox | ( | struct SidebarWindowData * | wdata, |
struct Mailbox * | m | ||
) |
Add a Mailbox to the Sidebar.
wdata | Sidebar data |
m | Mailbox to add |
The Sidebar will be re-sorted, and the indices updated, when sb_recalc() is called.
Definition at line 89 of file sidebar.c.
void sb_remove_mailbox | ( | struct SidebarWindowData * | wdata, |
const struct Mailbox * | m | ||
) |
Remove a Mailbox from the Sidebar.
wdata | Sidebar data |
m | Mailbox to remove |
Definition at line 126 of file sidebar.c.
void sb_set_current_mailbox | ( | struct SidebarWindowData * | wdata, |
struct Mailbox * | m | ||
) |
Set the current Mailbox.
wdata | Sidebar data |
m | Mailbox |
Definition at line 179 of file sidebar.c.
void sb_init | ( | void | ) |
Set up the Sidebar.
Definition at line 202 of file sidebar.c.
void sb_cleanup | ( | void | ) |
Clean up the Sidebar.
Definition at line 218 of file sidebar.c.
struct ListHead SidebarPinned = STAILQ_HEAD_INITIALIZER(SidebarPinned) |
|
static |
Sidebar Commands.