diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-10-19 09:08:44 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-10-19 09:08:44 +0800 |
commit | 0e2492ca585ff69aae41b6b2b72a76c46daa7f47 (patch) | |
tree | fac278df35c7af1dab1243b9ee2d8219a4bf1622 /widgets/table/e-cell-text.c | |
parent | 6da38957bf240831aaa8a9c7c74080fec8cf2e3e (diff) | |
download | gsoc2013-evolution-0e2492ca585ff69aae41b6b2b72a76c46daa7f47.tar gsoc2013-evolution-0e2492ca585ff69aae41b6b2b72a76c46daa7f47.tar.gz gsoc2013-evolution-0e2492ca585ff69aae41b6b2b72a76c46daa7f47.tar.bz2 gsoc2013-evolution-0e2492ca585ff69aae41b6b2b72a76c46daa7f47.tar.lz gsoc2013-evolution-0e2492ca585ff69aae41b6b2b72a76c46daa7f47.tar.xz gsoc2013-evolution-0e2492ca585ff69aae41b6b2b72a76c46daa7f47.tar.zst gsoc2013-evolution-0e2492ca585ff69aae41b6b2b72a76c46daa7f47.zip |
Make text a different color if !(flags & E_CELL_FOCUSED).
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Make text a different color if !(flags &
E_CELL_FOCUSED).
* e-cell.h: Added E_CELL_FOCUSED to flags.
* e-table-item.c: Changed the background color of selected cells
if the widget is focused. Send E_CELL_FOCUSED to flags if the
widget is focused.
* e-table.c: Repaint the window if focus changes.
svn path=/trunk/; revision=6010
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 4a4b90ce08..0fe721f0ec 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -489,7 +489,10 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable, clip_rect = ▭ if (selected){ - foreground = &canvas->style->text [GTK_STATE_SELECTED]; + if (flags & E_CELL_FOCUSED) + foreground = &canvas->style->text [GTK_STATE_SELECTED]; + else + foreground = &canvas->style->text [GTK_STATE_ACTIVE]; } else { foreground = &canvas->style->text [GTK_STATE_NORMAL]; } |