Support sending notifications for all appointments

In 45417bc (Add configuration option to notify all appointments,
2011-07-31), we added an option that allows for choosing whether the
user receives notifications only for flagged or only for unflagged
appointments. Convert this setting into a three-state option and allow
the user to additionally enable notifications for *all* appointments.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer
2016-01-27 08:03:09 +01:00
parent e1bffdb52d
commit ebe483c058
4 changed files with 71 additions and 27 deletions

View File

@@ -598,6 +598,10 @@ struct pad {
};
/* Notification bar definition. */
#define NOTIFY_FLAGGED_ONLY 0
#define NOTIFY_UNFLAGGED_ONLY 1
#define NOTIFY_ALL 2
struct nbar {
unsigned show; /* display or hide the notify-bar */
int cntdwn; /* warn when time left before next app