Skip to content

Commit 959e266

Browse files
committed
Drop support for ancient Pango versions
Now that GTK+ 3 and wxWidgets >= 3.2 are required, it's safe to say that an ancient Pango version older than 1.38 (released 10 years ago) is not being used.
1 parent 83649a9 commit 959e266

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/colorscheme.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@
2828
#include <wx/artprov.h>
2929
#include <wx/settings.h>
3030

31-
#ifdef __WXGTK__
32-
#include <pango/pango.h>
33-
#if PANGO_VERSION_CHECK(1,38,0)
34-
#define SUPPORTS_BGALPHA
35-
#endif
36-
#else
37-
#define SUPPORTS_BGALPHA
38-
#endif
39-
4031

4132
namespace
4233
{
@@ -128,10 +119,8 @@ wxColour ColorScheme::DoGet(Color color, Mode mode)
128119
case Color::ItemContextBgHighlighted:
129120
#if defined(__WXMSW__)
130121
return sRGB(255, 255, 255, 0.50);
131-
#elif defined(SUPPORTS_BGALPHA)
132-
return sRGB(255, 255, 255, 0.35);
133122
#else
134-
return DoGet(Color::ItemContextBg, mode);
123+
return sRGB(255, 255, 255, 0.35);
135124
#endif
136125

137126
// Tags:

0 commit comments

Comments
 (0)