summaryrefslogtreecommitdiff
path: root/src/custom.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-03-29 17:06:56 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-03-29 17:06:56 +0200
commitc85c3cce558b32c4fb00a339872d4dbe035d3f6c (patch)
treea1f854cda63db04b189a95221d08549ff6dcf487 /src/custom.c
parent8916293a26e7a79e3bf969aac9895b2678946deb (diff)
downloadcalcurse-c85c3cce558b32c4fb00a339872d4dbe035d3f6c.zip
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>
Diffstat (limited to 'src/custom.c')
-rw-r--r--src/custom.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/custom.c b/src/custom.c
index 39be7f0..dd0bd62 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -644,8 +644,8 @@ print_general_options (WINDOW *win)
_("periodic_save = "),
_("confirm_quit = "),
_("confirm_delete = "),
- _("skip_system_dialogs = "),
- _("skip_progress_bar = "),
+ _("system_dialogs = "),
+ _("progress_bar = "),
_("week_begins_on_monday = "),
_("output_datefmt = "),
_("input_datefmt = ")
@@ -687,17 +687,17 @@ print_general_options (WINDOW *win)
"before deleting an event)"));
y += YOFF;
mvwprintw (win, y, XPOS, "[6] %s ", opt[SKIP_SYSTEM_DIAGS]);
- print_bool_option_incolor (win, conf.skip_system_dialogs, y,
+ print_bool_option_incolor (win, conf.system_dialogs, y,
XPOS + 4 + strlen (opt[SKIP_SYSTEM_DIAGS]));
mvwprintw (win, y + 1, XPOS,
_("(if set to YES, messages about loaded "
- "and saved data will not be displayed)"));
+ "and saved data will be displayed)"));
y += YOFF;
mvwprintw (win, y, XPOS, "[7] %s ", opt[SKIP_PROGRESS_BAR]);
- print_bool_option_incolor (win, conf.skip_progress_bar, y,
+ print_bool_option_incolor (win, conf.progress_bar, y,
XPOS + 4 + strlen (opt[SKIP_PROGRESS_BAR]));
mvwprintw (win, y + 1, XPOS,
- _("(if set to YES, progress bar will not be displayed "
+ _("(if set to YES, progress bar will be displayed "
"when saving data)"));
y += YOFF;
mvwprintw (win, y, XPOS, "[8] %s ", opt[WEEK_BEGINS_MONDAY]);
@@ -809,10 +809,10 @@ custom_general_config (void)
conf.confirm_delete = !conf.confirm_delete;
break;
case '6':
- conf.skip_system_dialogs = !conf.skip_system_dialogs;
+ conf.system_dialogs = !conf.system_dialogs;
break;
case '7':
- conf.skip_progress_bar = !conf.skip_progress_bar;
+ conf.progress_bar = !conf.progress_bar;
break;
case '8':
calendar_change_first_day_of_week ();