diff options
Diffstat (limited to 'mail/em-html-stream.c')
-rw-r--r-- | mail/em-html-stream.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/em-html-stream.c b/mail/em-html-stream.c index 955525c306..5b217a7a05 100644 --- a/mail/em-html-stream.c +++ b/mail/em-html-stream.c @@ -109,7 +109,7 @@ emhs_sync_write(CamelStream *stream, const char *buffer, size_t n) return -1; if (emhs->html_stream == NULL) - emhs->html_stream = gtk_html_begin(emhs->html); + emhs->html_stream = gtk_html_begin_full (emhs->html, NULL, NULL, emhs->flags); gtk_html_stream_write(emhs->html_stream, buffer, n); @@ -160,6 +160,7 @@ em_html_stream_new(struct _GtkHTML *html, struct _GtkHTMLStream *html_stream) new = EM_HTML_STREAM (camel_object_new (EM_HTML_STREAM_TYPE)); new->html_stream = html_stream; new->html = html; + new->flags = 0; g_object_ref(html); new->destroy_id = g_signal_connect(html, "destroy", G_CALLBACK(emhs_gtkhtml_destroy), new); @@ -167,3 +168,9 @@ em_html_stream_new(struct _GtkHTML *html, struct _GtkHTMLStream *html_stream) return (CamelStream *)new; } + +void +em_html_stream_set_flags (EMHTMLStream *emhs, GtkHTMLBeginFlags flags) +{ + emhs->flags = flags; +} |