]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/button.cpp
create lib\...\setup.h from setup.h, not setup0.h which is not meant to be edited
[wxWidgets.git] / src / gtk1 / button.cpp
index 5b16248fcd89cf06327b3dfe344d0476729cf1bd..01b3283adcd389665996f97dd30995b20bc4bcd5 100644 (file)
 #pragma implementation "button.h"
 #endif
 
+#include "wx/defs.h"
+
+#if wxUSE_BUTTON
+
 #include "wx/button.h"
 
 #include <gdk/gdk.h>
@@ -118,8 +122,6 @@ bool wxButton::Create(  wxWindow *parent, wxWindowID id, const wxString &label,
   
     PostCreation();
   
-    ApplyWidgetStyle();
-
     SetFont( parent->GetFont() );
 
     wxSize best_size( DoGetBestSize() );
@@ -188,3 +190,5 @@ wxSize wxButton::DoGetBestSize() const
     return ret;
 }
 
+#endif // wxUSE_BUTTON
+