diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-04-18 10:03:07 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-18 10:03:07 +0800 |
commit | 36a42fc60313ee2c15de8b2466bd208a0feff6ae (patch) | |
tree | 2b2f2d51b9613fa0b46473673ed458775e20951d /calendar/cal-util | |
parent | d55901c052e7431d907f1db4aa243b79948c3f46 (diff) | |
download | gsoc2013-evolution-36a42fc60313ee2c15de8b2466bd208a0feff6ae.tar gsoc2013-evolution-36a42fc60313ee2c15de8b2466bd208a0feff6ae.tar.gz gsoc2013-evolution-36a42fc60313ee2c15de8b2466bd208a0feff6ae.tar.bz2 gsoc2013-evolution-36a42fc60313ee2c15de8b2466bd208a0feff6ae.tar.lz gsoc2013-evolution-36a42fc60313ee2c15de8b2466bd208a0feff6ae.tar.xz gsoc2013-evolution-36a42fc60313ee2c15de8b2466bd208a0feff6ae.tar.zst gsoc2013-evolution-36a42fc60313ee2c15de8b2466bd208a0feff6ae.zip |
Added mandatory status property. (ical_object_to_vobject): Only store
1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx>
* 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
Diffstat (limited to 'calendar/cal-util')
-rw-r--r-- | calendar/cal-util/calobj.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |