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 "index/lib.h"
#include "mutt_commands.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. More... | |
void | sb_add_mailbox (struct SidebarWindowData *wdata, struct Mailbox *m) |
Add a Mailbox to the Sidebar. More... | |
void | sb_remove_mailbox (struct SidebarWindowData *wdata, const struct Mailbox *m) |
Remove a Mailbox from the Sidebar. More... | |
void | sb_set_current_mailbox (struct SidebarWindowData *wdata, struct Mailbox *m) |
Set the current Mailbox. More... | |
void | sb_init (void) |
Set up the Sidebar. More... | |
void | sb_shutdown (void) |
Clean up the Sidebar. More... | |
Variables | |
struct ListHead | SidebarWhitelist = STAILQ_HEAD_INITIALIZER(SidebarWhitelist) |
List of mailboxes to always display in the sidebar. More... | |
static const struct Command | sb_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 58 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 83 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 120 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 173 of file sidebar.c.
void sb_init | ( | void | ) |
Set up the Sidebar.
Definition at line 196 of file sidebar.c.
void sb_shutdown | ( | void | ) |
Clean up the Sidebar.
Definition at line 208 of file sidebar.c.
struct ListHead SidebarWhitelist = STAILQ_HEAD_INITIALIZER(SidebarWhitelist) |
|
static |