X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..9a63feff3a93d9d9dc36f155d3a5c3a36cb922f0:/include/wx/gtk1/button.h diff --git a/include/wx/gtk1/button.h b/include/wx/gtk1/button.h index 5b895a059e..5c90c03e24 100644 --- a/include/wx/gtk1/button.h +++ b/include/wx/gtk1/button.h @@ -10,7 +10,7 @@ #ifndef __GTKBUTTONH__ #define __GTKBUTTONH__ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif @@ -67,6 +67,10 @@ public: void ApplyWidgetStyle(); bool IsOwnGtkWindow( GdkWindow *window ); + // Since this wxButton doesn't derive from wxButtonBase (why?) we need + // to override this here too... + virtual bool ShouldInheritColours() const { return false; } + protected: virtual wxSize DoGetBestSize() const;