aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-26 22:40:43 +0800
committerDan Winship <danw@src.gnome.org>2000-04-26 22:40:43 +0800
commitb2ae704032d1bd7b090b99a05be8a514b7ef1ea6 (patch)
treec745fd31aed0e7111bd90b17faa146b293f75350 /mail
parentec4ad73a58ea138bdcb5e67bccfb3495685f9354 (diff)
downloadgsoc2013-evolution-b2ae704032d1bd7b090b99a05be8a514b7ef1ea6.tar
gsoc2013-evolution-b2ae704032d1bd7b090b99a05be8a514b7ef1ea6.tar.gz
gsoc2013-evolution-b2ae704032d1bd7b090b99a05be8a514b7ef1ea6.tar.bz2
gsoc2013-evolution-b2ae704032d1bd7b090b99a05be8a514b7ef1ea6.tar.lz
gsoc2013-evolution-b2ae704032d1bd7b090b99a05be8a514b7ef1ea6.tar.xz
gsoc2013-evolution-b2ae704032d1bd7b090b99a05be8a514b7ef1ea6.tar.zst
gsoc2013-evolution-b2ae704032d1bd7b090b99a05be8a514b7ef1ea6.zip
update for CamelStream changes.
* mail-format.c: update for CamelStream changes. svn path=/trunk/; revision=2631
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-format.c9
2 files changed, 8 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f9b746de5e..794298e2ec 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,7 @@
+2000-04-26 Dan Winship <danw@helixcode.com>
+
+ * mail-format.c: update for CamelStream changes.
+
2000-04-25 Dan Winship <danw@helixcode.com>
* mail-display.c, mail-format.c: Redo large chunks of this. The
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 413145e6d2..3f05cf99e7 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -203,7 +203,7 @@ icon_stream (char *path)
g_byte_array_append (ba, buf, nread);
}
close (fd);
- return camel_stream_mem_new_with_byte_array (ba, CAMEL_STREAM_MEM_READ);
+ return camel_stream_mem_new_with_byte_array (ba);
}
static void
@@ -734,7 +734,7 @@ handle_text_enriched (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
mail_html_write (html, stream, "\n<!-- text/enriched -->\n");
ba = g_byte_array_new ();
- memstream = camel_stream_mem_new_with_byte_array (ba, CAMEL_STREAM_MEM_WRITE);
+ memstream = camel_stream_mem_new_with_byte_array (ba);
camel_data_wrapper_write_to_stream (wrapper, memstream);
g_byte_array_append (ba, "", 1);
@@ -1150,8 +1150,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_STREAM_MEM_WRITE);
+ cstream = camel_stream_mem_new_with_byte_array (ba);
camel_data_wrapper_write_to_stream (wrapper, cstream);
/* ...convert the CamelStreamMem to a BonoboStreamMem... */
@@ -1191,7 +1190,7 @@ get_data_wrapper_text (CamelDataWrapper *data)
char *text;
ba = g_byte_array_new ();
- memstream = camel_stream_mem_new_with_byte_array (ba, CAMEL_STREAM_MEM_WRITE);
+ memstream = camel_stream_mem_new_with_byte_array (ba);
camel_data_wrapper_write_to_stream (data, memstream);
text = g_malloc (ba->len + 1);