diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-07-31 02:04:18 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-07-31 03:23:32 +0200 |
commit | 45417bc6f0b6a38754bc707608c9b377d006cdfd (patch) | |
tree | 3afce6d731a33a60b6d82d207d5d18a0f87373f5 /src/custom.c | |
parent | 0884d62b2282b3ff5936f8d36f7f8d77c504938d (diff) | |
download | calcurse-45417bc6f0b6a38754bc707608c9b377d006cdfd.zip |
Add configuration option to notify all appointments
If "notify-all" is enabled, all non-flagged appointments will be
notified (instead of flagged ones). This is useful for users that want
to be notified of everything.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/custom.c')
-rw-r--r-- | src/custom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/custom.c b/src/custom.c index 6385593..b2679d2 100644 --- a/src/custom.c +++ b/src/custom.c @@ -59,6 +59,7 @@ enum conf_var { CUSTOM_CONF_NOTIFYBARCLOCK, CUSTOM_CONF_NOTIFYBARWARNING, CUSTOM_CONF_NOTIFYBARCOMMAND, + CUSTOM_CONF_NOTIFYALL, CUSTOM_CONF_OUTPUTDATEFMT, CUSTOM_CONF_INPUTDATEFMT, CUSTOM_CONF_DMON_ENABLE, @@ -89,6 +90,7 @@ static struct conf_varname conf_varmap[] = { CUSTOM_CONF_NOTIFYBARCLOCK, "notify-bar_clock" }, { CUSTOM_CONF_NOTIFYBARWARNING, "notify-bar_warning" }, { CUSTOM_CONF_NOTIFYBARCOMMAND, "notify-bar_command" }, + { CUSTOM_CONF_NOTIFYALL, "notify-all" }, { CUSTOM_CONF_OUTPUTDATEFMT, "output_datefmt" }, { CUSTOM_CONF_INPUTDATEFMT, "input_datefmt" }, { CUSTOM_CONF_DMON_ENABLE, "notify-daemon_enable" }, @@ -338,6 +340,9 @@ custom_set_conf (struct conf *conf, enum conf_var var, char *val) case CUSTOM_CONF_NOTIFYBARCOMMAND: (void)strncpy (nbar.cmd, val, strlen (val) + 1); break; + case CUSTOM_CONF_NOTIFYALL: + return conf_parse_bool (&nbar.notify_all, val); + break; case CUSTOM_CONF_OUTPUTDATEFMT: if (val[0] != '\0') (void)strncpy (conf->output_datefmt, val, strlen (val) + 1); |