diff options
Diffstat (limited to 'calendar')
-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]; |