diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-10 20:38:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-10 20:40:21 +0800 |
commit | 56e6bdb414fb251d99ffe43667bbc2a25741091a (patch) | |
tree | 73f7de03174d951142831b3bb342d83343e9ef98 /calendar/gui | |
parent | a674eab94dd55978a6fa8db1fbe57bf419377f43 (diff) | |
download | gsoc2013-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.c | 11 |
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 = >K_WIDGET (wp)->style->fg[GTK_WIDGET_STATE (wp)]; - focus_outline = >K_WIDGET (wp)->style->bg[GTK_WIDGET_STATE (wp)]; + state = gtk_widget_get_state (GTK_WIDGET (wp)); - fill = >K_WIDGET (wp)->style->base[GTK_WIDGET_STATE (wp)]; - text_fill = >K_WIDGET (wp)->style->fg[GTK_WIDGET_STATE (wp)]; + outline = >K_WIDGET (wp)->style->fg[state]; + focus_outline = >K_WIDGET (wp)->style->bg[state]; + + fill = >K_WIDGET (wp)->style->base[state]; + text_fill = >K_WIDGET (wp)->style->fg[state]; sel_fill = >K_WIDGET (wp)->style->bg[GTK_STATE_SELECTED]; sel_text_fill = >K_WIDGET (wp)->style->fg[GTK_STATE_SELECTED]; |