[evolution/webkit: 145/182] Don't reload EMailDisplay every time set_style() is called.



commit 5745d80eb88e57b88e3aeeb6685db917bc237624
Author: Dan VrÃtil <dvratil redhat com>
Date:   Thu Feb 9 14:23:04 2012 +0100

    Don't reload EMailDisplay every time set_style() is called.
    
    We simply can't afford to reload webview so often

 mail/e-mail-display.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index 2d4ddef..2d0e7ff 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -336,12 +336,10 @@ mail_display_style_set (GtkWidget *widget,
 {
 	EMailDisplay *display = E_MAIL_DISPLAY (widget);
 
-	/* Chain up to parent's style_set() method. */
-	GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style);
-
 	mail_display_update_formatter_colors (display);
 
-	e_mail_display_reload (display);
+	/* Chain up to parent's style_set() method. */
+	GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style);
 }
 
 static gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]