summaryrefslogtreecommitdiff
path: root/gtk/gtkinfobar.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/gtkinfobar.c
parentf407871b87288115fe839ffe13a86c789a44ba87 (diff)
downloadgtk+-2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6.tar.gz
Don't pass widget state flags to GtkStyleContext API
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r--gtk/gtkinfobar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 5b11ba7c7c..8e421b8914 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -322,7 +322,7 @@ get_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);