aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-05-20 03:59:06 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-20 03:59:06 +0800
commitccd4d84234d933ccf05769e71a3372e149d707d1 (patch)
tree6d70e18401a55716d5d2f2d31383ce671f933ea0 /mail/mail-format.c
parent2ce4eb74b65f3e9d07a921aad3899a7141b0000f (diff)
downloadgsoc2013-evolution-ccd4d84234d933ccf05769e71a3372e149d707d1.tar.gz
gsoc2013-evolution-ccd4d84234d933ccf05769e71a3372e149d707d1.tar.zst
gsoc2013-evolution-ccd4d84234d933ccf05769e71a3372e149d707d1.zip
Fixes for stream stuff.
2000-05-19 NotZed <NotZed@HelixCode.com> * mail-format.c: Fixes for stream stuff. * mail-display.c (save_data_cb): Remove exception stuff on streams. svn path=/trunk/; revision=3143
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index f1a1f3e552..fc5d321cec 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -418,7 +418,7 @@ get_data_wrapper_text (CamelDataWrapper *data)
ba = g_byte_array_new ();
memstream = camel_stream_mem_new_with_byte_array (ba);
- camel_data_wrapper_write_to_stream (data, memstream, NULL);
+ camel_data_wrapper_write_to_stream (data, memstream);
text = g_malloc (ba->len + 1);
memcpy (text, ba->data, ba->len);
text[ba->len] = '\0';
@@ -587,7 +587,7 @@ handle_text_enriched (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
ba = g_byte_array_new ();
memstream = camel_stream_mem_new_with_byte_array (ba);
- camel_data_wrapper_write_to_stream (wrapper, memstream, NULL);
+ camel_data_wrapper_write_to_stream (wrapper, memstream);
g_byte_array_append (ba, "", 1);
p = ba->data;
@@ -1029,7 +1029,7 @@ handle_via_bonobo (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
/* Write the data to a CamelStreamMem... */
ba = g_byte_array_new ();
cstream = camel_stream_mem_new_with_byte_array (ba);
- camel_data_wrapper_write_to_stream (wrapper, cstream, NULL);
+ camel_data_wrapper_write_to_stream (wrapper, cstream);
/* ...convert the CamelStreamMem to a BonoboStreamMem... */
bstream = bonobo_stream_mem_create (ba->data, ba->len, TRUE, FALSE);
@@ -1321,9 +1321,8 @@ mail_generate_forward (CamelMimeMessage *mime_message,
}
stream = camel_stream_fs_new_with_fd (fd);
- camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (mime_message),
- stream, NULL);
- camel_stream_flush (stream, NULL);
+ camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (mime_message), stream);
+ camel_stream_flush (stream);
gtk_object_unref (GTK_OBJECT (stream));
composer = E_MSG_COMPOSER (e_msg_composer_new ());