diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/table/e-cell-text.c | 3 |
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]; |