summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2015-11-22 11:43:39 +0100
committerTimm Bäder <mail@baedert.org>2015-11-22 17:11:35 +0100
commit2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6 (patch)
treec683c8395a737d897ab2aabea1c97e0f0e557dfd /gtk/gtkcalendar.c
parentf407871b87288115fe839ffe13a86c789a44ba87 (diff)
downloadgtk+-2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6.tar.gz
Don't pass widget state flags to GtkStyleContext API
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 1c735cf64d..bb31f5fe1e 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -1086,7 +1086,7 @@ get_component_paddings (GtkCalendar *calendar,
widget = GTK_WIDGET (calendar);
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
+ state = gtk_style_context_get_state (context);
if (padding)
gtk_style_context_get_padding (context, state, padding);