]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/button.cpp
Some minors changes, like adding empty lines at end of files, to be able to compile...
[wxWidgets.git] / src / gtk1 / button.cpp
index 140e4380ef0b5baefad76bbb1d41cf0a8ea390c0..ad9b36f8daa54dab65c79a1256feaccd51e9b156 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( "" );
     
@@ -118,6 +120,12 @@ void wxButton::SetDefault(void)
     SetSize( m_x, m_y, m_width, m_height );
 }
 
+/* static */
+wxSize wxButton::GetDefaultSize()
+{
+    return wxSize(80,26);
+}
+
 void wxButton::SetLabel( const wxString &label )
 {
     wxCHECK_RET( m_widget != NULL, _T("invalid button") );