diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-08-10 15:34:30 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-08-10 15:34:30 +0800 |
commit | d7e017d1bf0c1237bcd4c94e62378a2bd6f56538 (patch) | |
tree | 021e61e54f2878644e2c7eef3de11a8315b734af /calendar/gui/itip-utils.c | |
parent | d37f6d14e38072a1550e7573cb958299c417de1f (diff) | |
download | gsoc2013-evolution-d7e017d1bf0c1237bcd4c94e62378a2bd6f56538.tar gsoc2013-evolution-d7e017d1bf0c1237bcd4c94e62378a2bd6f56538.tar.gz gsoc2013-evolution-d7e017d1bf0c1237bcd4c94e62378a2bd6f56538.tar.bz2 gsoc2013-evolution-d7e017d1bf0c1237bcd4c94e62378a2bd6f56538.tar.lz gsoc2013-evolution-d7e017d1bf0c1237bcd4c94e62378a2bd6f56538.tar.xz gsoc2013-evolution-d7e017d1bf0c1237bcd4c94e62378a2bd6f56538.tar.zst gsoc2013-evolution-d7e017d1bf0c1237bcd4c94e62378a2bd6f56538.zip |
Fixes shared memos for File system.
svn path=/trunk/; revision=32520
Diffstat (limited to 'calendar/gui/itip-utils.c')
-rw-r--r-- | calendar/gui/itip-utils.c | 21 |
1 files changed, 18 insertions, 3 deletions
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"); |