mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-29 10:37:39 +00:00
expander: Use the right state when querying style properties
Failure to do so causes warnings.
This commit is contained in:
parent
527d6a6f34
commit
7085595c08
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user