diff options
author | Radek Doulik <rodo@ximian.com> | 2004-04-26 23:53:15 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-04-26 23:53:15 +0800 |
commit | 45dae27911e7740f339fa00674aa08d904f47041 (patch) | |
tree | 6091006f4cf5aa0378cd63fbb1fd3d53b6d5c544 /mail/em-html-stream.c | |
parent | 5b3684dd9d164552830d24355d84402f9212898a (diff) | |
download | gsoc2013-evolution-45dae27911e7740f339fa00674aa08d904f47041.tar.gz gsoc2013-evolution-45dae27911e7740f339fa00674aa08d904f47041.tar.zst gsoc2013-evolution-45dae27911e7740f339fa00674aa08d904f47041.zip |
set gtk_html_begin's flags to avoid scroll to top of the message and
2004-04-26 Radek Doulik <rodo@ximian.com>
* em-format-html.c (efh_format_timeout): set gtk_html_begin's
flags to avoid scroll to top of the message and
reloading+flickering of images
* em-html-stream.c: added GtkHTMLBeginFlags flags field
(em_html_stream_set_flags): new helper function to set new flags
field
(emhs_sync_write): use gtk_html_begin_full with new flags field
(em_html_stream_new): zero flags field
svn path=/trunk/; revision=25616
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; +} |