Fix semantics of "general."{systemdialogs,progressbar}

These were renamed from "skip_"* to *. However, we only changed syntax
and didn't invert their semantic meaning. Fix this by negating the
semantics of those variables. Also, negate these in the configuration
file automatically when running `calcurse-upgrade`.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-03-29 17:06:56 +02:00
parent 8916293a26
commit c85c3cce55
8 changed files with 31 additions and 23 deletions

View File

@@ -99,8 +99,8 @@ static const struct confvar confmap[] = {
{ "general.confirmquit", CONFIG_HANDLER_BOOL (conf.confirm_quit) },
{ "general.firstdayofweek", config_parse_first_day_of_week, config_serialize_first_day_of_week, NULL },
{ "general.periodicsave", CONFIG_HANDLER_UNSIGNED (conf.periodic_save) },
{ "general.progressbar", CONFIG_HANDLER_BOOL (conf.skip_progress_bar) },
{ "general.systemdialogs", CONFIG_HANDLER_BOOL (conf.skip_system_dialogs) },
{ "general.progressbar", CONFIG_HANDLER_BOOL (conf.progress_bar) },
{ "general.systemdialogs", CONFIG_HANDLER_BOOL (conf.system_dialogs) },
{ "notification.command", CONFIG_HANDLER_STR (nbar.cmd) },
{ "notification.notifyall", CONFIG_HANDLER_BOOL (nbar.notify_all) },
{ "notification.warning", CONFIG_HANDLER_INT (nbar.cntdwn) }