diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-21 11:13:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-28 23:35:55 +0800 |
commit | 31b57ed0383b2ea225195d4b72a872f7f2d93163 (patch) | |
tree | 2d70adcce04ed1ed5111c06cd7ad93266419b0e0 /widgets | |
parent | a91eeb647138ee035444cdc3c265fa4e95898f29 (diff) | |
download | gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar.gz gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar.zst gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.zip |
Adapt to Camel API changes.
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-attachment.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c index 468e164418..0a3bfabb05 100644 --- a/widgets/misc/e-attachment.c +++ b/widgets/misc/e-attachment.c @@ -1055,8 +1055,8 @@ e_attachment_add_to_multipart (EAttachment *attachment, camel_stream_filter_add ( CAMEL_STREAM_FILTER (filtered_stream), CAMEL_MIME_FILTER (filter)); - camel_data_wrapper_decode_to_stream ( - wrapper, filtered_stream, NULL); + camel_data_wrapper_decode_to_stream_sync ( + wrapper, filtered_stream, NULL, NULL); g_object_unref (filtered_stream); g_object_unref (stream); @@ -1539,9 +1539,10 @@ attachment_load_finish (LoadContext *load_context) size = g_memory_output_stream_get_data_size (output_stream); stream = camel_stream_mem_new_with_buffer (data, size); - camel_data_wrapper_construct_from_stream (wrapper, stream, NULL); + camel_data_wrapper_construct_from_stream_sync ( + wrapper, stream, NULL, NULL); camel_data_wrapper_set_mime_type (wrapper, mime_type); - camel_stream_close (stream, NULL); + camel_stream_close (stream, NULL, NULL); g_object_unref (stream); mime_part = camel_mime_part_new (); @@ -2477,7 +2478,7 @@ attachment_save_got_output_stream (SaveContext *save_context) stream = camel_stream_mem_new (); camel_stream_mem_set_byte_array (CAMEL_STREAM_MEM (stream), buffer); wrapper = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); - camel_data_wrapper_decode_to_stream (wrapper, stream, NULL); + camel_data_wrapper_decode_to_stream_sync (wrapper, stream, NULL, NULL); g_object_unref (stream); /* Load the buffer into a GMemoryInputStream. |