aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-14 10:52:44 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-14 11:08:03 +0100
commit806673dd9b256e879d1483255886a8881d1d8115 (patch)
tree53dfc46a1575233ad95dfdc2767a695504d26eac /src/config.c
parent971df8d215a0e10c87f67f3505345e15efcffb8e (diff)
downloadcalcurse-806673dd9b256e879d1483255886a8881d1d8115.tar.gz
calcurse-806673dd9b256e879d1483255886a8881d1d8115.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c12
1 files changed, 6 insertions, 6 deletions
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");