diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-04 00:15:19 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-10-04 00:15:19 +0200 |
commit | 533b1994a73b6ae5003ad73109a600c0d05b4a92 (patch) | |
tree | b4615e59afc7b4bb8fbd696bb9c8ceed5cce6b63 /src/calendar.c | |
parent | Reintroduce color and name parsing. (diff) | |
download | calp-533b1994a73b6ae5003ad73109a600c0d05b4a92.tar.gz calp-533b1994a73b6ae5003ad73109a600c0d05b4a92.tar.xz |
Actually fix NAME.
Diffstat (limited to 'src/calendar.c')
-rw-r--r-- | src/calendar.c | 2 |
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); |