From 806673dd9b256e879d1483255886a8881d1d8115 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 14 Feb 2013 10:52:44 +0100 Subject: calendar.c: Rename to "ui-calendar.c" This unit belongs to the presentation layer -- rename the file accordingly. Also, rename calendar_*() to ui_calendar_*(). Signed-off-by: Lukas Fleischer --- src/config.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 83d1a93..72ce7fa 100644 --- a/src/config.c +++ b/src/config.c @@ -202,9 +202,9 @@ static int config_parse_color_pair(int *dest1, int *dest2, const char *val) static int config_parse_calendar_view(void *dummy, const char *val) { if (!strcmp(val, "monthly")) - calendar_set_view(CAL_MONTH_VIEW); + ui_calendar_set_view(CAL_MONTH_VIEW); else if (!strcmp(val, "weekly")) - calendar_set_view(CAL_WEEK_VIEW); + ui_calendar_set_view(CAL_WEEK_VIEW); else return 0; @@ -228,9 +228,9 @@ static int config_parse_default_panel(void *dummy, const char *val) static int config_parse_first_day_of_week(void *dummy, const char *val) { if (!strcmp(val, "monday")) - calendar_set_first_day_of_week(MONDAY); + ui_calendar_set_first_day_of_week(MONDAY); else if (!strcmp(val, "sunday")) - calendar_set_first_day_of_week(SUNDAY); + ui_calendar_set_first_day_of_week(SUNDAY); else return 0; @@ -379,7 +379,7 @@ static void config_color_theme_name(char *theme_name) static int config_serialize_calendar_view(char *buf, void *dummy) { - if (calendar_get_view() == CAL_WEEK_VIEW) + if (ui_calendar_get_view() == CAL_WEEK_VIEW) strcpy(buf, "weekly"); else strcpy(buf, "monthly"); @@ -401,7 +401,7 @@ static int config_serialize_default_panel(char *buf, void *dummy) static int config_serialize_first_day_of_week(char *buf, void *dummy) { - if (calendar_week_begins_on_monday()) + if (ui_calendar_week_begins_on_monday()) strcpy(buf, "monday"); else strcpy(buf, "sunday"); -- cgit v1.2.3-54-g00ecf