aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-06-28 02:57:41 +0800
committerMilan Crha <mcrha@redhat.com>2013-06-28 02:57:41 +0800
commit0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe (patch)
tree66a40e43745da9ec90cf846228c27827f8f84de5
parent05f1d810f9db8b9215064e1faf3cbd224bb6c86f (diff)
downloadgsoc2013-evolution-0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe.tar
gsoc2013-evolution-0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe.tar.gz
gsoc2013-evolution-0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe.tar.bz2
gsoc2013-evolution-0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe.tar.lz
gsoc2013-evolution-0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe.tar.xz
gsoc2013-evolution-0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe.tar.zst
gsoc2013-evolution-0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe.zip
Bug #699576 - Mail reader frame is black (in the mail view)
-rw-r--r--em-format/e-mail-formatter.c9
1 files changed, 7 insertions, 2 deletions
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 (