aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/calobj.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1999-02-24 08:40:15 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-02-24 08:40:15 +0800
commit89ef5539d9a04cf249987a9b43cd31b6bcd8797d (patch)
treece177309a708892d3c84fa807d1ee5779c2b0f88 /calendar/pcs/calobj.c
parent2df03af7a2ab4362e8dd32f3221777d09a90e42a (diff)
downloadgsoc2013-evolution-89ef5539d9a04cf249987a9b43cd31b6bcd8797d.tar
gsoc2013-evolution-89ef5539d9a04cf249987a9b43cd31b6bcd8797d.tar.gz
gsoc2013-evolution-89ef5539d9a04cf249987a9b43cd31b6bcd8797d.tar.bz2
gsoc2013-evolution-89ef5539d9a04cf249987a9b43cd31b6bcd8797d.tar.lz
gsoc2013-evolution-89ef5539d9a04cf249987a9b43cd31b6bcd8797d.tar.xz
gsoc2013-evolution-89ef5539d9a04cf249987a9b43cd31b6bcd8797d.tar.zst
gsoc2013-evolution-89ef5539d9a04cf249987a9b43cd31b6bcd8797d.zip
Save the owner/organizer of the event. (ical_object_create_from_vobject):
1999-02-23 Miguel de Icaza <miguel@nuclecu.unam.mx> * calobj.c (ical_object_to_vobject): Save the owner/organizer of the event. (ical_object_create_from_vobject): Load the owner/organizer of the event. * gncal-full-day.c (delete_occurance): Assign child to data (fixes crash on "delete this occurrance"). svn path=/trunk/; revision=689
Diffstat (limited to 'calendar/pcs/calobj.c')
-rw-r--r--calendar/pcs/calobj.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c
index a615c0e313..6ed9db187a 100644
--- a/calendar/pcs/calobj.c
+++ b/calendar/pcs/calobj.c
@@ -623,6 +623,12 @@ ical_object_create_from_vobject (VObject *o, const char *object_name)
free (the_str);
}
+ /* Organizer */
+ if (has (o, VCOrgNameProp)){
+ ical->organizer = g_strdup (str_val (vo));
+ free (the_str);
+ }
+
/* related */
if (has (o, VCRelatedToProp)){
ical->related = set_list (str_val (vo));
@@ -899,6 +905,10 @@ ical_object_to_vobject (iCalObject *ical)
/* transparency */
addPropValue (o, VCTranspProp, to_str (ical->transp));
+ /* Owenr/organizer */
+ if (ical->organizer)
+ addPropValue (o, VCOrgNameProp, ical->organizer);
+
/* related */
if (ical->related)
store_list (o, VCRelatedToProp, ical->related);