[evolution] Bug #699576 - Mail reader frame is black (in the mail view)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #699576 - Mail reader frame is black (in the mail view)
- Date: Thu, 27 Jun 2013 18:58:56 +0000 (UTC)
commit 0cb0dc0dddf915d0c6d6baa522beaa0cfeb0fefe
Author: Milan Crha <mcrha redhat com>
Date: Thu Jun 27 20:57:41 2013 +0200
Bug #699576 - Mail reader frame is black (in the mail view)
em-format/e-mail-formatter.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c
index 4c3c8d0..f3f0967 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 (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]