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 "module_data.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 (struct MuttWindow *all_dialogs_window) |
| Set up the Sidebar. | |
| void | sb_cleanup (struct ListHead *sidebar_pinned, struct MuttWindow *all_dialogs_window) |
| Clean up the Sidebar. | |
Variables | |
| 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 74 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 99 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 137 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 190 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_init | ( | struct MuttWindow * | all_dialogs_window | ) |
Set up the Sidebar.
| all_dialogs_window | All Dialogs Window |
Definition at line 214 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_cleanup | ( | struct ListHead * | sidebar_pinned, |
| struct MuttWindow * | all_dialogs_window ) |
Clean up the Sidebar.
| sidebar_pinned | List of pinned sidebar entries |
| all_dialogs_window | All Dialogs Window |
Definition at line 234 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const struct Command SbCommands[] |
Sidebar Commands.
Definition at line 48 of file sidebar.c.