aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-04-26 23:53:15 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-04-26 23:53:15 +0800
commit45dae27911e7740f339fa00674aa08d904f47041 (patch)
tree6091006f4cf5aa0378cd63fbb1fd3d53b6d5c544 /mail/em-format-html.c
parent5b3684dd9d164552830d24355d84402f9212898a (diff)
downloadgsoc2013-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-format-html.c')
-rw-r--r--mail/em-format-html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index a7ccb59dee..5302f5b79c 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -1310,9 +1310,9 @@ efh_format_timeout(struct _format_msg *m)
m->estream = (EMHTMLStream *)em_html_stream_new(efh->html, hstream);
if (p->last_part == m->message) {
- /* HACK: so we redraw in the same spot */
- /* FIXME: It doesn't work! */
- efh->html->engine->newPage = FALSE;
+ em_html_stream_set_flags (m->estream,
+ GTK_HTML_BEGIN_KEEP_SCROLL | GTK_HTML_BEGIN_KEEP_IMAGES
+ | GTK_HTML_BEGIN_BLOCK_UPDATES | GTK_HTML_BEGIN_BLOCK_IMAGES);
} else {
/* clear cache of inline-scanned text parts */
g_hash_table_foreach(p->text_inline_parts, efh_free_inline_parts, NULL);