X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31c6b4fc1022d33896e9b3d196f462744359e14f..319fefa9109ef95cab9f6dcbd46e3f3edbcff8c9:/src/gtk1/button.cpp diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index 140e4380ef..613aab8a05 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -79,7 +79,9 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label, PreCreation( parent, id, pos, newSize, style, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif // wxUSE_VALIDATORS m_widget = gtk_button_new_with_label( "" );