summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-07-01 17:59:14 +0000
committerFrederic Culot <calcurse@culot.org>2007-07-01 17:59:14 +0000
commit694d3ec32bcc30cb32df65885f6997194972ef47 (patch)
tree75cd204cae7d827cc381b1f713769c9e432716d1 /src
parent8a59ab6d2d0764420b05f5eefd0e31a167ecd576 (diff)
downloadcalcurse-694d3ec32bcc30cb32df65885f6997194972ef47.tar.gz
calcurse-694d3ec32bcc30cb32df65885f6997194972ef47.zip
call to calendar_set_first_day_of_week() added
Diffstat (limited to 'src')
-rwxr-xr-xsrc/custom.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/custom.c b/src/custom.c
index 90845aa..6c0cdd1 100755
--- a/src/custom.c
+++ b/src/custom.c
@@ -1,4 +1,4 @@
-/* $calcurse: custom.c,v 1.11 2007/05/06 13:31:31 culot Exp $ */
+/* $calcurse: custom.c,v 1.12 2007/07/01 17:59:14 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include "calendar.h"
#include "custom.h"
#include "i18n.h"
#include "io.h"
@@ -36,9 +37,8 @@
#include "apoint.h"
static struct attribute_s attr;
-static bool fill_config_var(char *string);
-bool
+static bool
fill_config_var(char *string)
{
if (strncmp(string, "yes", 3) == 0)
@@ -149,7 +149,10 @@ custom_load_conf(conf_t *conf, int background, int nc_bar, int nl_bar)
var = 0;
break;
case CUSTOM_CONF_WEEKBEGINSONMONDAY:
- conf->week_begins_on_monday = fill_config_var(e_conf);
+ if (fill_config_var(e_conf))
+ calendar_set_first_day_of_week(MONDAY);
+ else
+ calendar_set_first_day_of_week(SUNDAY);
var = 0;
break;
case CUSTOM_CONF_COLORTHEME: