aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-01-23 03:34:23 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-01-23 03:34:23 +0800
commit4825d465d6052855db119e6005ad38b30c685cc5 (patch)
treec5eb72671ec43f9739198dfc76f5cc07535aa240 /widgets
parentc4c705ff088a448554b1eac45d3f9dce4f70f76d (diff)
downloadgsoc2013-evolution-4825d465d6052855db119e6005ad38b30c685cc5.tar.gz
gsoc2013-evolution-4825d465d6052855db119e6005ad38b30c685cc5.tar.zst
gsoc2013-evolution-4825d465d6052855db119e6005ad38b30c685cc5.zip
** Fix for bug #511094
2008-01-22 Milan Crha <mcrha@redhat.com> ** Fix for bug #511094 * e-cell-text.c: (ect_draw): Set proper foreground color based on focused/non-focused canvas. svn path=/trunk/; revision=34867
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/ChangeLog7
-rw-r--r--widgets/table/e-cell-text.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 90b2ec55cb..707472b79f 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-22 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #511094
+
+ * e-cell-text.c: (ect_draw): Set proper foreground color based
+ on focused/non-focused canvas.
+
2008-01-20 Srinivasa Ragavan <sragavan@novell.com>
* e-table-item.c: (eti_draw): Draw the cursor only for multiselection.
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 5a55a51982..ca66ea5cfa 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -741,7 +741,10 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
selected = flags & E_CELL_SELECTED;
if (selected) {
+ if (GTK_WIDGET_HAS_FOCUS (canvas))
foreground = &canvas->style->fg [GTK_STATE_SELECTED];
+ else
+ foreground = &canvas->style->fg [GTK_STATE_ACTIVE];
} else {
foreground = &canvas->style->text [GTK_STATE_NORMAL];