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
This commit is contained in:

committed by
Arturo Espinosa

parent
2df03af7a2
commit
89ef5539d9
@ -1,3 +1,12 @@
|
||||
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").
|
||||
|
||||
1999-02-22 Timur Bakeyev <mc@bat.ru>
|
||||
|
||||
* calendar.c: According to configured values, use either tm.tm_zone
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -428,7 +428,7 @@ edit_appointment (GtkWidget *widget, gpointer data)
|
||||
static void
|
||||
delete_occurance (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
Child *child;
|
||||
Child *child = data;
|
||||
iCalObject *ical;
|
||||
time_t *t;
|
||||
GnomeCalendar *gcal = GNCAL_FULL_DAY (child->widget->parent)->calendar;
|
||||
|
@ -428,7 +428,7 @@ edit_appointment (GtkWidget *widget, gpointer data)
|
||||
static void
|
||||
delete_occurance (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
Child *child;
|
||||
Child *child = data;
|
||||
iCalObject *ical;
|
||||
time_t *t;
|
||||
GnomeCalendar *gcal = GNCAL_FULL_DAY (child->widget->parent)->calendar;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user