aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-10 20:38:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-10 20:40:21 +0800
commit56e6bdb414fb251d99ffe43667bbc2a25741091a (patch)
tree73f7de03174d951142831b3bb342d83343e9ef98 /calendar/gui
parenta674eab94dd55978a6fa8db1fbe57bf419377f43 (diff)
downloadgsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.gz
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.tar.zst
gsoc2013-evolution-56e6bdb414fb251d99ffe43667bbc2a25741091a.zip
Bug 612374 - Build failure due to recent GTK+ deprecations
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/weekday-picker.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/weekday-picker.c b/calendar/gui/weekday-picker.c
index ab06db9765..12dd47d16a 100644
--- a/calendar/gui/weekday-picker.c
+++ b/calendar/gui/weekday-picker.c
@@ -92,15 +92,18 @@ colorize_items (WeekdayPicker *wp)
GdkColor *outline, *focus_outline;
GdkColor *fill, *sel_fill;
GdkColor *text_fill, *sel_text_fill;
+ GtkStateType state;
gint i;
priv = wp->priv;
- outline = &GTK_WIDGET (wp)->style->fg[GTK_WIDGET_STATE (wp)];
- focus_outline = &GTK_WIDGET (wp)->style->bg[GTK_WIDGET_STATE (wp)];
+ state = gtk_widget_get_state (GTK_WIDGET (wp));
- fill = &GTK_WIDGET (wp)->style->base[GTK_WIDGET_STATE (wp)];
- text_fill = &GTK_WIDGET (wp)->style->fg[GTK_WIDGET_STATE (wp)];
+ outline = &GTK_WIDGET (wp)->style->fg[state];
+ focus_outline = &GTK_WIDGET (wp)->style->bg[state];
+
+ fill = &GTK_WIDGET (wp)->style->base[state];
+ text_fill = &GTK_WIDGET (wp)->style->fg[state];
sel_fill = &GTK_WIDGET (wp)->style->bg[GTK_STATE_SELECTED];
sel_text_fill = &GTK_WIDGET (wp)->style->fg[GTK_STATE_SELECTED];