X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab7ce33c563651f790f99d64ee56727706047ae3..6da1ce616686ad1dc03021aead77a048971279d3:/include/wx/gtk1/button.h diff --git a/include/wx/gtk1/button.h b/include/wx/gtk1/button.h index f6d0a48857..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 @@ -65,7 +65,12 @@ 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;