X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db434467a143a2c847c4bcfe987f0202c2d02bf2..b34039cf55bc7cb87cedf396f60396e2f8fc0d62:/src/gtk1/button.cpp diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index 5b16248fcd..01b3283adc 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -11,6 +11,10 @@ #pragma implementation "button.h" #endif +#include "wx/defs.h" + +#if wxUSE_BUTTON + #include "wx/button.h" #include @@ -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 +