Avoid "Gtk-WARNING **: State doesn't match"

See https://github.com/wxWidgets/wxWidgets/pull/232
This commit is contained in:
Paul Cornett
2016-02-24 20:57:48 -08:00
parent d3a0798bc5
commit 69a13d973c
6 changed files with 9 additions and 1 deletions

View File

@@ -452,6 +452,7 @@ void wxPizza::get_border(GtkBorder& border)
else
sc = gtk_widget_get_style_context(wxGTKPrivate::GetEntryWidget());
gtk_style_context_set_state(sc, GTK_STATE_FLAG_NORMAL);
gtk_style_context_get_border(sc, GTK_STATE_FLAG_NORMAL, &border);
#else // !__WXGTK3__
GtkStyle* style;