From 5f2900575a02a587203c98617583537708adee8f Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 1 Apr 2003 06:02:21 +0000 Subject: if we're called and the idle handler is set, remove it, so we dont go and 2003-04-01 Not Zed * mail-display.c (mail_display_redisplay): if we're called and the idle handler is set, remove it, so we dont go and redisplay it again. Fixes #40522. svn path=/trunk/; revision=20609 --- mail/mail-display.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mail/mail-display.c') diff --git a/mail/mail-display.c b/mail/mail-display.c index 99ba6895df..657275df98 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1925,6 +1925,12 @@ mail_display_redisplay (MailDisplay *md, gboolean reset_scroll) { if (md->destroyed) return; + + /* we're in effect stealing the queued redisplay */ + if (md->idle_id) { + g_source_remove(md->idle_id); + md->idle_id = 0; + } fetch_cancel(md); @@ -2000,7 +2006,7 @@ mail_display_set_charset (MailDisplay *mail_display, const char *charset) { g_free (mail_display->charset); mail_display->charset = g_strdup (charset); - + mail_display_queue_redisplay (mail_display); } -- cgit v1.2.3