Avoid "Gtk-WARNING **: State doesn't match"
See https://github.com/wxWidgets/wxWidgets/pull/232
This commit is contained in:
@@ -1835,6 +1835,7 @@ void wxTextCtrl::DoApplyWidgetStyle(GtkRcStyle *style)
|
||||
gtk_style_context_save(context);
|
||||
gtk_style_context_add_class(context, GTK_STYLE_CLASS_VIEW);
|
||||
}
|
||||
gtk_style_context_set_state(context, selectedFocused);
|
||||
gtk_style_context_get(context, selectedFocused,
|
||||
"color", &fg_orig, "background-color", &bg_orig,
|
||||
NULL);
|
||||
|
Reference in New Issue
Block a user