[evolution] Bug 737340 - theme_text_color is no longer in gtk 3.14



commit 6af2adebfad5d4ece45ef3d895aaa891c75adb39
Author: Jérémy Lal <kapouer melix org>
Date:   Thu Oct 9 11:03:34 2014 +0200

    Bug 737340 - theme_text_color is no longer in gtk 3.14

 addressbook/gui/widgets/e-minicard-label.c |    2 +-
 addressbook/gui/widgets/e-minicard.c       |    2 +-
 calendar/gui/e-memo-table.c                |    2 +-
 calendar/gui/e-task-table.c                |    2 +-
 calendar/gui/e-week-view.c                 |    2 +-
 e-util/e-calendar-item.c                   |    4 ++--
 e-util/e-cell-text.c                       |    4 ++--
 e-util/e-html-editor-page-dialog.c         |    2 +-
 e-util/e-table-click-to-add.c              |    4 ++--
 e-util/e-text.c                            |    2 +-
 10 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c
index 7e80945..c6d8dff 100644
--- a/addressbook/gui/widgets/e-minicard-label.c
+++ b/addressbook/gui/widgets/e-minicard-label.c
@@ -422,7 +422,7 @@ set_colors (EMinicardLabel *label)
 
                widget = GTK_WIDGET (GNOME_CANVAS_ITEM (label)->canvas);
 
-               e_utils_get_theme_color_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, 
&text);
+               e_utils_get_theme_color_color (widget, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &text);
 
                if (label->has_focus) {
                        GdkColor outline, fill;
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 474f588..6edc597 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -272,7 +272,7 @@ set_selected (EMinicard *minicard,
                        NULL);
        } else {
                e_utils_get_theme_color_color (widget, "theme_bg_color", E_UTILS_DEFAULT_THEME_BG_COLOR, 
&header);
-               e_utils_get_theme_color_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, 
&text);
+               e_utils_get_theme_color_color (widget, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &text);
 
                gnome_canvas_item_set (
                        minicard->rect,
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c
index 38ae982..223b3a1 100644
--- a/calendar/gui/e-memo-table.c
+++ b/calendar/gui/e-memo-table.c
@@ -444,7 +444,7 @@ memo_table_query_tooltip (GtkWidget *widget,
        e_utils_get_theme_color (widget, "theme_selected_bg_color", E_UTILS_DEFAULT_THEME_SELECTED_BG_COLOR, 
&sel_bg);
        e_utils_get_theme_color (widget, "theme_selected_fg_color", E_UTILS_DEFAULT_THEME_SELECTED_FG_COLOR, 
&sel_fg);
        e_utils_get_theme_color (widget, "theme_bg_color", E_UTILS_DEFAULT_THEME_BG_COLOR, &norm_bg);
-       e_utils_get_theme_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &norm_text);
+       e_utils_get_theme_color (widget, "theme_text_color,theme_fg_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, 
&norm_text);
 
        box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
diff --git a/calendar/gui/e-task-table.c b/calendar/gui/e-task-table.c
index e7af495..8180a7a 100644
--- a/calendar/gui/e-task-table.c
+++ b/calendar/gui/e-task-table.c
@@ -746,7 +746,7 @@ task_table_query_tooltip (GtkWidget *widget,
        e_utils_get_theme_color (widget, "theme_selected_bg_color", E_UTILS_DEFAULT_THEME_SELECTED_BG_COLOR, 
&sel_bg);
        e_utils_get_theme_color (widget, "theme_selected_fg_color", E_UTILS_DEFAULT_THEME_SELECTED_FG_COLOR, 
&sel_fg);
        e_utils_get_theme_color (widget, "theme_bg_color", E_UTILS_DEFAULT_THEME_BG_COLOR, &norm_bg);
-       e_utils_get_theme_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &norm_text);
+       e_utils_get_theme_color (widget, "theme_text_color,theme_fg_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, 
&norm_text);
 
        box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 408cf23..de543cb 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -1836,7 +1836,7 @@ e_week_view_set_colors (EWeekView *week_view)
 
        e_utils_get_theme_color (widget, "theme_base_color", E_UTILS_DEFAULT_THEME_BASE_COLOR, &base_bg);
        e_utils_get_theme_color (widget, "theme_bg_color", E_UTILS_DEFAULT_THEME_BG_COLOR, &bg_bg);
-       e_utils_get_theme_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &text_fg);
+       e_utils_get_theme_color (widget, "theme_text_color,theme_fg_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, 
&text_fg);
        e_utils_get_theme_color (widget, "theme_selected_bg_color", E_UTILS_DEFAULT_THEME_SELECTED_BG_COLOR, 
&selected_bg);
        e_utils_get_theme_color (widget, "theme_selected_fg_color", E_UTILS_DEFAULT_THEME_SELECTED_FG_COLOR, 
&selected_fg);
        e_utils_get_theme_color (widget, "theme_unfocused_selected_bg_color,theme_selected_bg_color", 
E_UTILS_DEFAULT_THEME_UNFOCUSED_SELECTED_BG_COLOR, &unfocused_selected_bg);
diff --git a/e-util/e-calendar-item.c b/e-util/e-calendar-item.c
index 3258ac9..8121c75 100644
--- a/e-util/e-calendar-item.c
+++ b/e-util/e-calendar-item.c
@@ -1452,7 +1452,7 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
        pango_layout_set_font_description (layout, font_desc);
        if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
                text_x += (7 - 1) * calitem->cell_width;
-       e_utils_get_theme_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &rgba);
+       e_utils_get_theme_color (widget, "theme_text_color,theme_fg_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, 
&rgba);
        gdk_cairo_set_source_rgba (cr, &rgba);
        for (day = 0; day < 7; day++) {
                cairo_save (cr);
@@ -1662,7 +1662,7 @@ e_calendar_item_draw_day_numbers (ECalendarItem *calitem,
                                get_digit_fomat (), digit);
 
                        cairo_save (cr);
-                       e_utils_get_theme_color (widget, "theme_text_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &rgba);
+                       e_utils_get_theme_color (widget, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &rgba);
                        gdk_cairo_set_source_rgba (cr, &rgba);
                        pango_layout_set_font_description (layout, font_desc);
                        pango_layout_set_text (layout, buffer, num_chars);
diff --git a/e-util/e-cell-text.c b/e-util/e-cell-text.c
index a0644a6..362dbae 100644
--- a/e-util/e-cell-text.c
+++ b/e-util/e-cell-text.c
@@ -725,7 +725,7 @@ ect_draw (ECellView *ecell_view,
        } else {
                gboolean color_overwritten = FALSE;
 
-               e_utils_get_theme_color (canvas, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, 
&fg_rgba);
+               e_utils_get_theme_color (canvas, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &fg_rgba);
                gdk_cairo_set_source_rgba (cr, &fg_rgba);
 
                if (ect->color_column != -1) {
@@ -820,7 +820,7 @@ ect_draw (ECellView *ecell_view,
                                }
                        } else {
                                e_utils_get_theme_color (canvas, "theme_base_color", 
E_UTILS_DEFAULT_THEME_BASE_COLOR, &bg_rgba);
-                               e_utils_get_theme_color (canvas, "theme_text_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &fg_rgba);
+                               e_utils_get_theme_color (canvas, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &fg_rgba);
                        }
 
                        indices[0] = MIN (edit->selection_start, edit->selection_end);
diff --git a/e-util/e-html-editor-page-dialog.c b/e-util/e-html-editor-page-dialog.c
index 0f9897f..f6a782e 100644
--- a/e-util/e-html-editor-page-dialog.c
+++ b/e-util/e-html-editor-page-dialog.c
@@ -353,7 +353,7 @@ html_editor_page_dialog_show (GtkWidget *widget)
        tmp = webkit_dom_html_body_element_get_text (
                        WEBKIT_DOM_HTML_BODY_ELEMENT (body));
        if (!tmp || !*tmp || !gdk_rgba_parse (&rgba, tmp))
-               e_utils_get_theme_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &rgba);
+               e_utils_get_theme_color (widget, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &rgba);
        g_free (tmp);
        e_color_combo_set_current_color (
                E_COLOR_COMBO (dialog->priv->text_color_picker), &rgba);
diff --git a/e-util/e-table-click-to-add.c b/e-util/e-table-click-to-add.c
index 4295c90..6dc8138 100644
--- a/e-util/e-table-click-to-add.c
+++ b/e-util/e-table-click-to-add.c
@@ -85,7 +85,7 @@ etcta_style_updated (ETableClickToAdd *etcta)
 
        e_utils_get_theme_color_color (widget, "theme_fg_color", E_UTILS_DEFAULT_THEME_FG_COLOR, &fg);
        e_utils_get_theme_color_color (widget, "theme_bg_color", E_UTILS_DEFAULT_THEME_BG_COLOR, &bg);
-       e_utils_get_theme_color_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &text);
+       e_utils_get_theme_color_color (widget, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &text);
 
        if (etcta->rect)
                gnome_canvas_item_set (
@@ -266,7 +266,7 @@ create_rect_and_text (ETableClickToAdd *etcta)
 
        e_utils_get_theme_color_color (widget, "theme_fg_color", E_UTILS_DEFAULT_THEME_FG_COLOR, &fg);
        e_utils_get_theme_color_color (widget, "theme_bg_color", E_UTILS_DEFAULT_THEME_BG_COLOR, &bg);
-       e_utils_get_theme_color_color (widget, "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &text);
+       e_utils_get_theme_color_color (widget, "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &text);
 
        if (!etcta->rect)
                etcta->rect = gnome_canvas_item_new (
diff --git a/e-util/e-text.c b/e-util/e-text.c
index e882621..e341cd9 100644
--- a/e-util/e-text.c
+++ b/e-util/e-text.c
@@ -1308,7 +1308,7 @@ e_text_draw (GnomeCanvasItem *item,
                        gdk_cairo_set_source_rgba (cr, &rgba);
                        cairo_paint (cr);
 
-                       e_utils_get_theme_color (widget, backdrop ? 
"theme_unfocused_text_color,theme_text_color" : "theme_text_color", E_UTILS_DEFAULT_THEME_TEXT_COLOR, &rgba);
+                       e_utils_get_theme_color (widget, backdrop ? 
"theme_unfocused_text_color,theme_text_color,theme_fg_color" : "theme_text_color,theme_fg_color", 
E_UTILS_DEFAULT_THEME_TEXT_COLOR, &rgba);
                        gdk_cairo_set_source_rgba (cr, &rgba);
                        cairo_move_to (cr, xpos, ypos);
                        pango_cairo_show_layout (cr, text->layout);


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