From b064d64be7e2e9444721beb7a02038f638edab4c Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 23 Apr 2013 14:59:09 +0200 Subject: [EMailFormatter] Use GdkRGBA and GtkStyleContext to get theme colors It could happen that header text color had been picked white one time, but the other time black as expected (for me usually when I started Evolution in Calendar and moved to Mail view, the header text color was white, while when starting in Mail view it was black). The change to use GtkStyleContext is there only as a cleanup from deprecated GtkStyle, and to make things easier too, because both GtkStyle and the GtkStyleContext had set white color for some reason. --- composer/e-msg-composer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'composer') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 76aa82eacb..78419b7d14 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -218,10 +218,9 @@ emcu_part_to_html (EMsgComposer *composer, formatter = e_mail_formatter_quote_new ( NULL, E_MAIL_FORMATTER_QUOTE_FLAG_KEEP_SIG); - e_mail_formatter_set_style ( + e_mail_formatter_update_style ( formatter, - gtk_widget_get_style (GTK_WIDGET (window)), - gtk_widget_get_state (GTK_WIDGET (window))); + gtk_widget_get_state_flags (GTK_WIDGET (window))); e_mail_formatter_format_sync ( formatter, part_list, (CamelStream *) mem, -- cgit v1.2.3