diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2005-01-27 21:25:09 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-01-27 21:25:09 +0800 |
commit | 8371bae83cee8d1ebec192e2ef6126dd17c71673 (patch) | |
tree | f2ac366392b9e87c62401bd704d3c8311e761053 /plugins/itip-formatter/itip-formatter.c | |
parent | b9bc87999f59c9628706ae460c5c1bd5068cebc1 (diff) | |
download | gsoc2013-evolution-8371bae83cee8d1ebec192e2ef6126dd17c71673.tar.gz gsoc2013-evolution-8371bae83cee8d1ebec192e2ef6126dd17c71673.tar.zst gsoc2013-evolution-8371bae83cee8d1ebec192e2ef6126dd17c71673.zip |
deal with the itip message having an individual instance.
2005-01-27 Rodrigo Moya <rodrigo@novell.com>
* itip-formatter.c (update_attendee_status): deal with the itip
message having an individual instance.
svn path=/trunk/; revision=28580
Diffstat (limited to 'plugins/itip-formatter/itip-formatter.c')
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 52351ff8d6..dbb5806a63 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -792,12 +792,13 @@ update_attendee_status (FormatItipPObject *pitip) { ECalComponent *comp = NULL; icalcomponent *icalcomp = NULL; - const char *uid; + const char *uid, *rid; GError *error; /* Obtain our version */ e_cal_component_get_uid (pitip->comp, &uid); - if (e_cal_get_object (pitip->current_ecal, uid, NULL, &icalcomp, NULL)) { + rid = e_cal_component_get_recurid_as_string (pitip->comp); + if (e_cal_get_object (pitip->current_ecal, uid, rid, &icalcomp, NULL)) { GSList *attendees; comp = e_cal_component_new (); @@ -831,7 +832,7 @@ update_attendee_status (FormatItipPObject *pitip) } } - if (!e_cal_modify_object (pitip->current_ecal, icalcomp, CALOBJ_MOD_ALL, &error)) { + if (!e_cal_modify_object (pitip->current_ecal, icalcomp, rid ? CALOBJ_MOD_THIS : CALOBJ_MOD_ALL, &error)) { itip_view_add_lower_info_item_printf (ITIP_VIEW (pitip->view), ITIP_VIEW_INFO_ITEM_TYPE_ERROR, _("Unable to update attendee. %s"), error->message); |