From 36a42fc60313ee2c15de8b2466bd208a0feff6ae Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 18 Apr 1998 02:03:07 +0000 Subject: Added mandatory status property. (ical_object_to_vobject): Only store 1998-04-17 Federico Mena Quintero * calobj.c (ical_new): Added mandatory status property. (ical_object_to_vobject): Only store "related" list if it exists. * main.c (save_calendar_cmd): Implemented calendar saving. (open_calendar_cmd): Implemented calendar loading. (new_calendar_cmd): Implemented calendar creation. (new_calendar): Don't load our test calendar by default. * gncal-full-day.c (delete_appointment): Delete appointment implemented. svn path=/trunk/; revision=153 --- calendar/cal-util/calobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c index 7878df7aa8..641c3fbf8b 100644 --- a/calendar/cal-util/calobj.c +++ b/calendar/cal-util/calobj.c @@ -56,6 +56,7 @@ ical_new (char *comment, char *organizer, char *summary) ico->organizer = g_strdup (organizer); ico->summary = g_strdup (summary); ico->class = g_strdup ("PUBLIC"); + ico->status = g_strdup ("NEEDS ACTION"); default_alarm (ico, &ico->dalarm, organizer, ALARM_DISPLAY); default_alarm (ico, &ico->palarm, organizer, ALARM_PROGRAM); @@ -790,7 +791,8 @@ ical_object_to_vobject (iCalObject *ical) addPropValue (o, VCTranspProp, to_str (ical->transp)); /* related */ - store_list (o, VCRelatedToProp, ical->related, ';'); + if (ical->related) + store_list (o, VCRelatedToProp, ical->related, ';'); /* attach */ for (l = ical->attach; l; l = l->next) -- cgit v1.2.3