diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 9 | ||||
-rw-r--r-- | composer/Evolution-Composer.idl | 4 | ||||
-rw-r--r-- | composer/evolution-composer.c | 4 |
3 files changed, 14 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index c3ee1af30c..d51f1e14b2 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,12 @@ +2001-06-20 Dave Camp <dave@ximian.com> + + * 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-19 JP Rosevear <jpr@ximian.com> * evolution-composer.c (impl_Composer_send): send the message diff --git a/composer/Evolution-Composer.idl b/composer/Evolution-Composer.idl index 3e18c5b5e3..067ad2fa23 100644 --- a/composer/Evolution-Composer.idl +++ b/composer/Evolution-Composer.idl @@ -20,6 +20,8 @@ module Evolution { }; typedef sequence<Recipient> RecipientList; + typedef sequence<char> AttachmentData; + /** * setHeaders: * @to: the "To" recipients @@ -81,7 +83,7 @@ module Evolution { in string filename, in string description, in boolean show_inline, - in string data); + in AttachmentData data); /** * show: diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c index ad4efd6b7d..ce251f2f9e 100644 --- a/composer/evolution-composer.c +++ b/composer/evolution-composer.c @@ -158,7 +158,7 @@ impl_Composer_attach_data (PortableServer_Servant servant, const CORBA_char *filename, const CORBA_char *description, const CORBA_boolean show_inline, - const CORBA_char *data, + const GNOME_Evolution_Composer_AttachmentData *data, CORBA_Environment *ev) { BonoboObject *bonobo_object; @@ -169,7 +169,7 @@ impl_Composer_attach_data (PortableServer_Servant servant, composer = EVOLUTION_COMPOSER (bonobo_object); attachment = camel_mime_part_new (); - camel_mime_part_set_content (attachment, data, strlen (data), + camel_mime_part_set_content (attachment, data->_buffer, data->_length, content_type); if (*filename) |