expander: Use the right state when querying style properties

Failure to do so causes warnings.
This commit is contained in:
Matthias Clasen 2015-11-17 20:48:50 -05:00
parent 527d6a6f34
commit 7085595c08

View File

@ -578,7 +578,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);