aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
parentbec11fb3dde06e253d3622c1a9f8937e973d8097 (diff)
downloadgsoc2013-evolution-7660d20a357ccda2e29bdfc3a1898e36200d5db5.tar.gz
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')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/e-day-view.c8
-rw-r--r--calendar/gui/e-week-view.c8
3 files changed, 14 insertions, 10 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index e8782a52b4..f7d47c8ce9 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+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
+
2009-02-11 Andre Klapper <a9016009@gmx.de>
* /gui/migration.c:
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 263b72d7ad..efdc1cd958 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -1237,7 +1237,7 @@ e_day_view_unrealize (GtkWidget *widget)
static GdkColor
e_day_view_get_text_color (EDayView *day_view, EDayViewEvent *event, GtkWidget *widget)
{
- GdkColor color, bg_color;
+ GdkColor bg_color;
guint16 red, green, blue;
gdouble cc = 65535.0;
@@ -1257,11 +1257,9 @@ e_day_view_get_text_color (EDayView *day_view, EDayViewEvent *event, GtkWidget *
}
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
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
:57 +0800'>2003-02-212-1/+1 * Remove empty docs subdir after install.obraun2003-01-062-1/+8 * Backout the recent upgrade to 4.1.25 (roll back to 4.0.14). It is apetef2003-01-054-982/+908 * fix plist and utilize DOCSDIRijliao2003-01-041-876/+952 * upgrade to 4.1.25ijliao2003-01-043-31/+30 * fix make package errorijliao2002-11-211-1/+0 * - Do not install useless .la filesijliao2002-11-204-894/+931 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-112-2/+1 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2 * Relinquish all my ports.ade2002-09-071-1/+1 * ${PERL} -> ${REINPLACE_CMD}dwcjr2002-09-021-2/+3 * (1) Take over maintainership whilst unifying the Sleepycat portsade2002-08-221-2/+2 * Sadly reset maintainership to ports@FreeBSD.org. Sergey, thanks forpetef2002-05-311-2/+2 * Update maintainer's email to match what he uses on send-pr to avoiddwcjr2002-05-231-2/+2 * Download site directory structure changedpat2002-05-151-1/+1 * patch for 4.0.14ijliao2001-12-249-888/+1072 * Style police: WWW tags should either end in a file/script or TRAILING /; Fix ...lioux2001-11-21