aboutsummaryrefslogtreecommitdiff
path: root/src/calendar.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-10-04 00:15:19 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-10-04 00:15:19 +0200
commit533b1994a73b6ae5003ad73109a600c0d05b4a92 (patch)
treeb4615e59afc7b4bb8fbd696bb9c8ceed5cce6b63 /src/calendar.c
parentReintroduce color and name parsing. (diff)
downloadcalp-533b1994a73b6ae5003ad73109a600c0d05b4a92.tar.gz
calp-533b1994a73b6ae5003ad73109a600c0d05b4a92.tar.xz
Actually fix NAME.
Diffstat (limited to 'src/calendar.c')
-rw-r--r--src/calendar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/calendar.c b/src/calendar.c
index bafc13c3..f3a9b254 100644
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -72,6 +72,8 @@ int handle_dir(SCM cal, char* path) {
/* NAME is the `fancy' name of the calendar. */
// vcomponent_push_val(cal, "NAME", basename(path));
+ scm_add_line_x(cal, scm_from_utf8_string("NAME"),
+ scm_make_vline(scm_from_utf8_stringn(basename(path), strlen(basename(path)))));
SCM line = scm_make_vline(scm_from_utf8_string("vdir"));
scm_add_line_x(cal, scm_from_utf8_string("X-HNH-SOURCETYPE"), line);