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. --- em-format/e-mail-formatter-error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'em-format/e-mail-formatter-error.c') diff --git a/em-format/e-mail-formatter-error.c b/em-format/e-mail-formatter-error.c index 6decb6409b..d5fd64b50d 100644 --- a/em-format/e-mail-formatter-error.c +++ b/em-format/e-mail-formatter-error.c @@ -66,13 +66,13 @@ emfe_error_format (EMailFormatterExtension *extension, "" "\n" "", - e_color_to_value ((GdkColor *) + e_rgba_to_value ( e_mail_formatter_get_color ( formatter, E_MAIL_FORMATTER_COLOR_FRAME)), - e_color_to_value ((GdkColor *) + e_rgba_to_value ( e_mail_formatter_get_color ( formatter, E_MAIL_FORMATTER_COLOR_BODY)), - e_color_to_value ((GdkColor *) + e_rgba_to_value ( e_mail_formatter_get_color ( formatter, E_MAIL_FORMATTER_COLOR_TEXT)), GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_DIALOG); -- cgit v1.2.3