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"
Include dependency graph for sidebar.c: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 66 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 91 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 128 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_set_current_mailbox | ( | struct SidebarWindowData * | wdata, |
| struct Mailbox * | m ) |
Set the current Mailbox.
| wdata | Sidebar data |
| m | Mailbox |
Definition at line 181 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_init | ( | void | ) |
Set up the Sidebar.
Definition at line 204 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_cleanup | ( | void | ) |
Clean up the Sidebar.
Definition at line 220 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct ListHead SidebarPinned = STAILQ_HEAD_INITIALIZER(SidebarPinned) |
|
static |
Sidebar Commands.
Definition at line 49 of file sidebar.c.