summaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-10-28 15:15:43 +0000
committerFrederic Culot <calcurse@culot.org>2009-10-28 15:15:43 +0000
commit758d5ff035d9c8d6eaa4cf17117d8c23675730a7 (patch)
tree9985d668f3f5492d6d2b71aa5927dd2cc73b590e /src/io.c
parentd678eb411a92b2cb6e26e1c9834d02c350800fbe (diff)
downloadcalcurse-758d5ff035d9c8d6eaa4cf17117d8c23675730a7.tar.gz
calcurse-758d5ff035d9c8d6eaa4cf17117d8c23675730a7.zip
Code to save the calendar default view in the configuration file.
Diffstat (limited to 'src/io.c')
-rwxr-xr-xsrc/io.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index e563d71..059fc6d 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.78 2009/08/09 16:00:02 culot Exp $ */
+/* $calcurse: io.c,v 1.79 2009/10/28 15:15:44 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -883,6 +883,10 @@ io_save_conf (conf_t *conf)
"when saving data will not be displayed\n");
(void)fprintf (fp, "skip_progress_bar=\n");
(void)fprintf (fp, "%s\n", (conf->skip_progress_bar) ? "yes" : "no");
+
+ (void)fprintf (fp, "\n# Default calendar view (0)monthly (1)weekly:\n");
+ (void)fprintf (fp, "calendar_default_view=\n");
+ (void)fprintf (fp, "%d\n", calendar_get_view ());
(void)fprintf (fp, "\n# If this option is set to yes, "
"monday is the first day of the week, else it is sunday\n");