From 45417bc6f0b6a38754bc707608c9b377d006cdfd Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 31 Jul 2011 02:04:18 +0200 Subject: 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 --- src/custom.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/custom.c') 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); -- cgit v1.2.3-54-g00ecf