From 90aba2dbfde59bd7b48d127a463e545a05301e76 Mon Sep 17 00:00:00 2001 From: Dave Camp Date: Wed, 20 Jun 2001 18:29:03 +0000 Subject: Changed attachData to accept a sequence of chars rather than a string. 2001-06-20 Dave Camp * Evolution-Composer.idl: Changed attachData to accept a sequence of chars rather than a string. * evolution-composer.c (impl_Composer_attach_data): Changed the 'data' argument to a GNOME_Evolution_Composer_AttachmentData, and pass data->_buffer and data->_length to camel_mime_part_set_content(). 2001-06-20 Dave Camp * gui/itip-utils.c (itip_send_comp): Changed attach_data to be a GNOME_Evolution_Composer_AttachmentData rather than a CORBA_char*. 2001-06-20 Dave Camp * backend/ebook/e-card.c (e_card_list_send): Changed attach_data to be a GNOME_Evolution_Composer_AttachmentData rather than a CORBA_char*. svn path=/trunk/; revision=10343 --- addressbook/backend/ebook/e-card.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'addressbook/backend') diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 50dc348059..211c22b33c 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -3744,10 +3744,11 @@ e_card_list_send (GList *cards, ECardDisposition disposition) } if (disposition == E_CARD_DISPOSITION_AS_ATTACHMENT) { - CORBA_char *content_type, *filename, *description, *attach_data; + CORBA_char *content_type, *filename, *description; + GNOME_Evolution_Composer_AttachmentData *attach_data; CORBA_boolean show_inline; char *tempstr; - + content_type = CORBA_string_dup ("text/x-vcard"); filename = CORBA_string_dup (""); @@ -3768,7 +3769,10 @@ e_card_list_send (GList *cards, ECardDisposition disposition) show_inline = FALSE; tempstr = e_card_list_get_vcard (cards); - attach_data = CORBA_string_dup (tempstr); + attach_data = GNOME_Evolution_Composer_AttachmentData__alloc(); + attach_data->_maximum = attach_data->_length = strlen (tempstr); + attach_data->_buffer = CORBA_sequence_CORBA_char_allocbuf (attach_data->_length); + strcpy (attach_data->_buffer, tempstr); g_free (tempstr); GNOME_Evolution_Composer_attachData (composer_server, -- cgit v1.2.3