]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
Added #include wx/dcclient.h and wx/settings.h for Vadims new code under
[wxWidgets.git] / src / gtk / button.cpp
index 140e4380ef0b5baefad76bbb1d41cf0a8ea390c0..613aab8a05068dbb9222ba0b19278b94f099ecbc 100644 (file)
@@ -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( "" );