diff options
author | Frederic Culot <calcurse@culot.org> | 2009-10-28 15:15:43 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-10-28 15:15:43 +0000 |
commit | 758d5ff035d9c8d6eaa4cf17117d8c23675730a7 (patch) | |
tree | 9985d668f3f5492d6d2b71aa5927dd2cc73b590e /src/custom.c | |
parent | d678eb411a92b2cb6e26e1c9834d02c350800fbe (diff) | |
download | calcurse-758d5ff035d9c8d6eaa4cf17117d8c23675730a7.zip |
Code to save the calendar default view in the configuration file.
Diffstat (limited to 'src/custom.c')
-rwxr-xr-x | src/custom.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/custom.c b/src/custom.c index 21211cd..34470c9 100755 --- a/src/custom.c +++ b/src/custom.c @@ -1,4 +1,4 @@ -/* $calcurse: custom.c,v 1.44 2009/08/02 09:29:24 culot Exp $ */ +/* $calcurse: custom.c,v 1.45 2009/10/28 15:15:44 culot Exp $ */ /* * Calcurse - text-based organizer @@ -273,6 +273,10 @@ custom_load_conf (conf_t *conf, int background) conf->skip_progress_bar = fill_config_var (e_conf); var = 0; break; + case CUSTOM_CONF_CALENDAR_DEFAULTVIEW: + calendar_set_view (atoi (e_conf)); + var = 0; + break; case CUSTOM_CONF_WEEKBEGINSONMONDAY: if (fill_config_var (e_conf)) calendar_set_first_day_of_week (MONDAY); @@ -344,7 +348,9 @@ custom_load_conf (conf_t *conf, int background) var = CUSTOM_CONF_SKIPSYSTEMDIALOGS; else if (strncmp (e_conf, "skip_progress_bar=", 18) == 0) var = CUSTOM_CONF_SKIPPROGRESSBAR; - else if (strncmp (e_conf, "week_begins_on_monday=", 23) == 0) + else if (strncmp (e_conf, "calendar_default_view=", 22) == 0) + var = CUSTOM_CONF_CALENDAR_DEFAULTVIEW; + else if (strncmp (e_conf, "week_begins_on_monday=", 22) == 0) var = CUSTOM_CONF_WEEKBEGINSONMONDAY; else if (strncmp (e_conf, "color-theme=", 12) == 0) var = CUSTOM_CONF_COLORTHEME; |