diff options
-rw-r--r-- | 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 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 ( |