[evolution/evolution-3-12] Incorrect text color for selected cells in ETree/ETable



commit eb8e6ce2121f9a8800d6baa86cb2a98ed02083e5
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jul 11 09:03:49 2014 +0200

    Incorrect text color for selected cells in ETree/ETable
    
    The text color was used reverted, focused color for unfocused widget
    and vice versa, producing incorrect drawing and a text hard to read.

 e-util/e-cell-text.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-cell-text.c b/e-util/e-cell-text.c
index 6d5a4ed..a0644a6 100644
--- a/e-util/e-cell-text.c
+++ b/e-util/e-cell-text.c
@@ -718,9 +718,9 @@ ect_draw (ECellView *ecell_view,
 
        if (selected) {
                if (gtk_widget_has_focus (canvas))
-                       e_utils_get_theme_color (canvas, 
"theme_unfocused_selected_fg_color,theme_selected_fg_color", 
E_UTILS_DEFAULT_THEME_UNFOCUSED_SELECTED_FG_COLOR, &fg_rgba);
-               else
                        e_utils_get_theme_color (canvas, "theme_selected_fg_color", 
E_UTILS_DEFAULT_THEME_SELECTED_FG_COLOR, &fg_rgba);
+               else
+                       e_utils_get_theme_color (canvas, 
"theme_unfocused_selected_fg_color,theme_selected_fg_color", 
E_UTILS_DEFAULT_THEME_UNFOCUSED_SELECTED_FG_COLOR, &fg_rgba);
                gdk_cairo_set_source_rgba (cr, &fg_rgba);
        } else {
                gboolean color_overwritten = FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]