From b865316e7e456d71244a242a084aa2a421096eac Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 20 Nov 2007 08:57:40 +0000 Subject: ** Fix for bug #493783 2007-11-20 Milan Crha ** Fix for bug #493783 * em-format-html.c: (efh_format_timeout): Do not erase old content when re-formatting same mail, so keep scroll position. svn path=/trunk/; revision=34554 --- mail/ChangeLog | 7 +++++++ mail/em-format-html.c | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 1f6419714d..843dcf29da 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2007-11-20 Milan Crha + + ** Fix for bug #493783 + + * em-format-html.c: (efh_format_timeout): Do not erase old content + when re-formatting same mail, so keep scroll position. + 2007-11-18 Gilles Dartiguelongue ** Fix bug #495875 diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 228a8aa3ef..dc2109407d 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1383,10 +1383,11 @@ efh_format_timeout(struct _format_msg *m) mail_msg_free(m); p->last_part = NULL; } else { - hstream = gtk_html_begin(efh->html); - gtk_html_stream_printf(hstream, "
%s
", - _("Formatting Message...")); - gtk_html_stream_close(hstream, GTK_HTML_STREAM_OK); + if (p->last_part != m->message) { + hstream = gtk_html_begin (efh->html); + gtk_html_stream_printf (hstream, "
%s
", _("Formatting Message...")); + gtk_html_stream_close (hstream, GTK_HTML_STREAM_OK); + } hstream = NULL; m->estream = (EMHTMLStream *)em_html_stream_new(efh->html, hstream); -- cgit v1.2.3