diff options
author | Li Yuan <li.yuan@sun.com> | 2005-04-28 16:03:47 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-04-28 16:03:47 +0800 |
commit | f4a4681685477573943f2de5340dfade7e441702 (patch) | |
tree | 2f7decb256b17984f907cf8fdad1caa52c8baab8 /widgets/misc/e-calendar.c | |
parent | 1cf6d50548e119712555080316946d74071a5992 (diff) | |
download | gsoc2013-evolution-f4a4681685477573943f2de5340dfade7e441702.tar.gz gsoc2013-evolution-f4a4681685477573943f2de5340dfade7e441702.tar.zst gsoc2013-evolution-f4a4681685477573943f2de5340dfade7e441702.zip |
use widget->style instead of hard code colors.
2005-04-28 Li Yuan <li.yuan@sun.com>
* misc/e-calendar-item.c: (e_calendar_item_realize),
(e_calendar_item_set_selection_if_emission),
(e_calendar_item_style_set):
use widget->style instead of hard code colors.
* misc/e-calendar-item.h:
* misc/e-calendar.c: (e_calendar_style_set):
call e_calendar_item_style_set when style changes.
Fixes #6767.
svn path=/trunk/; revision=29234
Diffstat (limited to 'widgets/misc/e-calendar.c')
-rw-r--r-- | widgets/misc/e-calendar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c index c8798b5cfa..e410054ef1 100644 --- a/widgets/misc/e-calendar.c +++ b/widgets/misc/e-calendar.c @@ -265,6 +265,9 @@ static void e_calendar_style_set (GtkWidget *widget, GtkStyle *previous_style) { + ECalendar *e_calendar; + + e_calendar = E_CALENDAR(widget); if (GTK_WIDGET_CLASS (e_calendar_parent_class)->style_set) (*GTK_WIDGET_CLASS (e_calendar_parent_class)->style_set) (widget, previous_style); @@ -274,6 +277,7 @@ e_calendar_style_set (GtkWidget *widget, if (GTK_WIDGET_REALIZED (widget->parent)) gdk_window_set_background (GTK_LAYOUT (widget)->bin_window, &widget->style->bg[GTK_STATE_NORMAL]); + e_calendar_item_style_set (widget, e_calendar->calitem); } |