From 694d3ec32bcc30cb32df65885f6997194972ef47 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 1 Jul 2007 17:59:14 +0000 Subject: call to calendar_set_first_day_of_week() added --- src/custom.c | 11 +++++++---- 1 file 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 #include +#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: -- cgit v1.2.3-54-g00ecf