Sidebar observers. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include "private.h"#include "mutt/lib.h"#include "config/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "color/lib.h"#include "index/lib.h"
Include dependency graph for observer.c:Go to the source code of this file.
Functions | |
| void | sb_win_remove_observers (struct MuttWindow *win) |
| Remove Observers from the Sidebar Window. | |
| static bool | calc_divider (struct SidebarWindowData *wdata) |
| Decide what actions are required for the divider. | |
| static struct MuttWindow * | sb_win_init (struct MuttWindow *dlg) |
| Initialise and insert the Sidebar Window. | |
| static void | sb_init_data (struct MuttWindow *win) |
| Initialise the Sidebar data. | |
| static int | sb_account_observer (struct NotifyCallback *nc) |
| Notification that an Account has changed - Implements observer_t -. | |
| static int | sb_color_observer (struct NotifyCallback *nc) |
| Notification that a Color has changed - Implements observer_t -. | |
| static int | sb_command_observer (struct NotifyCallback *nc) |
| Notification that a Command has occurred - Implements observer_t -. | |
| static int | sb_config_observer (struct NotifyCallback *nc) |
| Notification that a Config Variable has changed - Implements observer_t -. | |
| static int | sb_index_observer (struct NotifyCallback *nc) |
| Notification that the Index has changed - Implements observer_t -. | |
| static int | sb_mailbox_observer (struct NotifyCallback *nc) |
| Notification that a Mailbox has changed - Implements observer_t -. | |
| static int | sb_window_observer (struct NotifyCallback *nc) |
| Notification that a Window has changed - Implements observer_t -. | |
| void | sb_win_add_observers (struct MuttWindow *win) |
| Add Observers to the Sidebar Window. | |
| int | sb_insertion_window_observer (struct NotifyCallback *nc) |
| Notification that a Window has changed - Implements observer_t -. | |
Sidebar observers.
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 observer.c.
| void sb_win_remove_observers | ( | struct MuttWindow * | win | ) |
Remove Observers from the Sidebar Window.
| win | Sidebar Window |
Definition at line 454 of file observer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Decide what actions are required for the divider.
| wdata | Sidebar data |
| true | The width has changed |
If the divider changes width, then Window will need to be reflowed.
Definition at line 51 of file observer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Initialise and insert the Sidebar Window.
| dlg | Index Dialog |
| ptr | Sidebar Window |
Definition at line 94 of file observer.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Initialise the Sidebar data.
| win | Sidebar Window |
Definition at line 150 of file observer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_win_add_observers | ( | struct MuttWindow * | win | ) |
Add Observers to the Sidebar Window.
| win | Sidebar Window |
Definition at line 434 of file observer.c.
Here is the call graph for this function:
Here is the caller graph for this function: