From 0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 27 Jun 2013 20:57:41 +0200 Subject: Bug #699576 - Mail reader frame is black (in the mail view) --- em-format/e-mail-formatter.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'em-format/e-mail-formatter.c') diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c index 4c3c8d0ed1..f3f09670d4 100644 --- a/em-format/e-mail-formatter.c +++ b/em-format/e-mail-formatter.c @@ -491,6 +491,10 @@ mail_formatter_update_style (EMailFormatter *formatter, widget_path = gtk_widget_path_new (); gtk_widget_path_append_type (widget_path, GTK_TYPE_WINDOW); gtk_style_context_set_path (style_context, widget_path); + gtk_style_context_invalidate (style_context); + + gtk_style_context_save (style_context); + gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_TOOLBAR); gtk_style_context_get_background_color (style_context, state, &rgba); e_mail_formatter_set_color ( @@ -502,12 +506,13 @@ mail_formatter_update_style (EMailFormatter *formatter, e_mail_formatter_set_color ( formatter, E_MAIL_FORMATTER_COLOR_FRAME, &rgba); + gtk_style_context_restore (style_context); + gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_ENTRY); + gtk_style_context_get_color (style_context, state, &rgba); e_mail_formatter_set_color ( formatter, E_MAIL_FORMATTER_COLOR_HEADER, &rgba); - gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_ENTRY); - gtk_style_context_get_background_color ( style_context, state | GTK_STATE_FLAG_FOCUSED, &rgba); e_mail_formatter_set_color ( -- cgit v1.2.3