diff options
author | Not Zed <NotZed@Ximian.com> | 2003-10-02 12:26:03 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-10-02 12:26:03 +0800 |
commit | 060d4b7e0a682d2e70a5275d8db1ea2f5fb488cc (patch) | |
tree | f06ea98eef1d84162a0059bf0df3357179d22267 /mail/em-html-stream.c | |
parent | 14cc184b53748a8dd504755415ea0f460073dedf (diff) | |
download | gsoc2013-evolution-060d4b7e0a682d2e70a5275d8db1ea2f5fb488cc.tar.gz gsoc2013-evolution-060d4b7e0a682d2e70a5275d8db1ea2f5fb488cc.tar.zst gsoc2013-evolution-060d4b7e0a682d2e70a5275d8db1ea2f5fb488cc.zip |
turn off blocking writes. (efh_format_timeout): don't do a htmlbegin on
2003-10-01 Not Zed <NotZed@Ximian.com>
* em-format-html.c (efh_init): turn off blocking writes.
(efh_format_timeout): don't do a htmlbegin on the page yet, it'll
be handled by em-html-stream when it has data, to reduce flicker.
(efh_format_do): close the main gtkhtml stream as soon as we're
done writing the body. any sub-jobs should be using frames etc.
(efh_text_plain): dont write a table around the text, try to
reduce flickering. layout may be out now though.
* em-html-stream.c (emhs_sync_write): if we have no html_stream
yet, begin a new one.
svn path=/trunk/; revision=22784
Diffstat (limited to 'mail/em-html-stream.c')
-rw-r--r-- | mail/em-html-stream.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/em-html-stream.c b/mail/em-html-stream.c index e50d6caee0..f55365d7c7 100644 --- a/mail/em-html-stream.c +++ b/mail/em-html-stream.c @@ -105,9 +105,12 @@ emhs_sync_write(CamelStream *stream, const char *buffer, size_t n) { EMHTMLStream *emhs = EM_HTML_STREAM (stream); - if (emhs->html_stream == NULL) + if (emhs->html == NULL) return -1; + if (emhs->html_stream == NULL) + emhs->html_stream = gtk_html_begin(emhs->html); + gtk_html_stream_write(emhs->html_stream, buffer, n); return (ssize_t) n; @@ -162,7 +165,7 @@ em_html_stream_new(struct _GtkHTML *html, struct _GtkHTMLStream *html_stream) g_object_ref(html); new->destroy_id = g_signal_connect(html, "destroy", G_CALLBACK(emhs_gtkhtml_destroy), new); - em_sync_stream_set_buffer_size(&new->sync, 4096); + em_sync_stream_set_buffer_size(&new->sync, 8192); return (CamelStream *)new; } |