summaryrefslogtreecommitdiff
path: root/gtk/gtkheaderbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r--gtk/gtkheaderbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 4b9882ed1b..da32b350a0 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -125,7 +125,7 @@ get_css_padding_and_border (GtkWidget *widget,
GtkBorder tmp;
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
+ state = gtk_style_context_get_state (context);
gtk_style_context_get_padding (context, state, border);
gtk_style_context_get_border (context, state, &tmp);