]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
renamed wxDynamicThisCast to wxDynamicCastThis, removed 1st parameter, and documented
[wxWidgets.git] / src / gtk / 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
+