From 9426490333e692e5a2a69d62b196a20ed5db9d05 Mon Sep 17 00:00:00 2001 From: Jouk Date: Tue, 21 Apr 2020 08:40:45 +0200 Subject: [PATCH] Fix for gtk1.x --- src/propgrid/editors.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 0f122decdc..2f0504095e 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -2136,7 +2136,11 @@ int wxPGMultiButton::GenId( int itemid ) const #if defined(__WXGTK__) // Dedicated wxBitmapButton with reduced internal borders +#if defined( __WXGTK127__ ) +#include "wx/gtk1/private.h" +#else #include "wx/gtk/private.h" +#endif class wxPGEditorBitmapButton : public wxBitmapButton { @@ -2149,7 +2153,9 @@ public: #if defined(__WXGTK3__) GTKApplyCssStyle("*{ padding:0 }"); #else +#if !defined( __WXGTK127__ ) GTKApplyWidgetStyle(true); // To enforce call to DoApplyWidgetStyle() +#endif #endif } @@ -2160,8 +2166,10 @@ protected: { if ( style ) { +#if !defined( __WXGTK127__ ) style->xthickness = 0; style->ythickness = 0; +#endif } wxBitmapButton::DoApplyWidgetStyle(style); }