aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-06-30 05:42:29 +0800
committerIain Holmes <iain@src.gnome.org>2001-06-30 05:42:29 +0800
commitb5a7aee5378ae0d233515c06d08718311b2bafbb (patch)
tree6fae7a507335fc1ca5c7cf04986720f7cb10a1a9 /my-evolution/e-summary.c
parentc78f6bec65bc0ac498e379e00004e0385754c53c (diff)
downloadgsoc2013-evolution-b5a7aee5378ae0d233515c06d08718311b2bafbb.tar
gsoc2013-evolution-b5a7aee5378ae0d233515c06d08718311b2bafbb.tar.gz
gsoc2013-evolution-b5a7aee5378ae0d233515c06d08718311b2bafbb.tar.bz2
gsoc2013-evolution-b5a7aee5378ae0d233515c06d08718311b2bafbb.tar.lz
gsoc2013-evolution-b5a7aee5378ae0d233515c06d08718311b2bafbb.tar.xz
gsoc2013-evolution-b5a7aee5378ae0d233515c06d08718311b2bafbb.tar.zst
gsoc2013-evolution-b5a7aee5378ae0d233515c06d08718311b2bafbb.zip
Put in the hack to stop GtkHTML from returning to the top of the page.
svn path=/trunk/; revision=10610
Diffstat (limited to 'my-evolution/e-summary.c')
-rw-r--r--my-evolution/e-summary.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/my-evolution/e-summary.c b/my-evolution/e-summary.c
index 5a0dcbd0b9..8504fdaf64 100644
--- a/my-evolution/e-summary.c
+++ b/my-evolution/e-summary.c
@@ -101,6 +101,7 @@ void
e_summary_draw (ESummary *summary)
{
GString *string;
+ GtkHTMLStream *stream;
char *html;
char date[256];
time_t t;
@@ -136,8 +137,12 @@ e_summary_draw (ESummary *summary)
g_string_append (string, html);
g_string_append (string, HTML_5);
- gtk_html_load_from_string (GTK_HTML (summary->priv->html), string->str,
- strlen (string->str));
+
+ stream = gtk_html_begin (GTK_HTML (summary->priv->html));
+ GTK_HTML (summary->priv->html)->engine->newPage = FALSE;
+ gtk_html_write (GTK_HTML (summary->priv->html), stream, string->str, strlen (string->str));
+ gtk_html_end (GTK_HTML (summary->priv->html), stream, GTK_HTML_STREAM_OK);
+
g_string_free (string, TRUE);
}