From d7e017d1bf0c1237bcd4c94e62378a2bd6f56538 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 10 Aug 2006 07:34:30 +0000 Subject: Fixes shared memos for File system. svn path=/trunk/; revision=32520 --- calendar/gui/itip-utils.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'calendar/gui/itip-utils.c') diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 08af83cab3..e34ec28c78 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -601,7 +601,23 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users, e_cal_component_free_attendee_list (attendees); break; + case E_CAL_COMPONENT_METHOD_PUBLISH: + if(users) { + len = g_list_length (users); + to_list = GNOME_Evolution_Composer_RecipientList__alloc (); + to_list->_maximum = len; + to_list->_length = 0; + to_list->_buffer = CORBA_sequence_GNOME_Evolution_Composer_Recipient_allocbuf (len); + + for (l = users; l != NULL; l = l->next) { + recipient = &(to_list->_buffer[to_list->_length]); + recipient->name = CORBA_string_dup (""); + recipient->address = CORBA_string_dup (l->data); + to_list->_length++; + } + break; + } default: to_list = GNOME_Evolution_Composer_RecipientList__alloc (); to_list->_maximum = to_list->_length = 0; @@ -1145,12 +1161,11 @@ append_cal_attachments (GNOME_Evolution_Composer composer_server, ECalComponent gboolean itip_send_comp (ECalComponentItipMethod method, ECalComponent *send_comp, - ECal *client, icalcomponent *zones, GSList *attachments_list) + ECal *client, icalcomponent *zones, GSList *attachments_list, GList *users) { GNOME_Evolution_Composer composer_server; ECalComponent *comp = NULL; icalcomponent *top_level = NULL; - GList *users = NULL; GNOME_Evolution_Composer_RecipientList *to_list = NULL; GNOME_Evolution_Composer_RecipientList *cc_list = NULL; GNOME_Evolution_Composer_RecipientList *bcc_list = NULL; @@ -1267,7 +1282,7 @@ itip_send_comp (ECalComponentItipMethod method, ECalComponent *send_comp, retval = TRUE; } - if (method == E_CAL_COMPONENT_METHOD_PUBLISH) { + if ((method == E_CAL_COMPONENT_METHOD_PUBLISH) && !users) { GNOME_Evolution_Composer_show (composer_server, &ev); if (BONOBO_EX (&ev)) g_warning ("Unable to show the composer while sending iTip message"); -- cgit v1.2.3