aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorChow Loong Jin <hyperair@gmail.com>2009-02-14 00:44:13 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-02-14 00:44:13 +0800
commit7660d20a357ccda2e29bdfc3a1898e36200d5db5 (patch)
tree8319f23411591d39eeee75de1d8c70ffa33bf9e5 /calendar/gui/e-week-view.c
parentbec11fb3dde06e253d3622c1a9f8937e973d8097 (diff)
downloadgsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.tar
gsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.tar.gz
gsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.tar.bz2
gsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.tar.lz
gsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.tar.xz
gsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.tar.zst
gsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.zip
** Fixes bug #571625
2009-02-13 Chow Loong Jin <hyperair@gmail.com> ** Fixes bug #571625 * calendar/gui/e-day-view.c * calendar/gui/e-week-view.c: Use black/white for foreground instead of active/inactive text color svn path=/trunk/; revision=37262
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index f5c2577b8f..f9328f1c97 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -816,7 +816,7 @@ get_digit_width (PangoLayout *layout)
static GdkColor
e_week_view_get_text_color (EWeekView *week_view, EWeekViewEvent *event, GtkWidget *widget)
{
- GdkColor color, bg_color;
+ GdkColor bg_color;
guint16 red, green, blue;
gdouble cc = 65535.0;
@@ -836,11 +836,9 @@ e_week_view_get_text_color (EWeekView *week_view, EWeekViewEvent *event, GtkWidg
}
if ((red/cc > 0.7) || (green/cc > 0.7) || (blue/cc > 0.7 ))
- color = widget->style->text[GTK_STATE_NORMAL];
+ return widget->style->black;
else
- color = widget->style->text[GTK_STATE_ACTIVE];
-
- return color;
+ return widget->style->white;
}
static void