X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d0c4d2e7bcedb4599c3cce0af19adf73b2f8ecd..35b6b7d54a8bcde0cbd77ebcad756776c9c6e2d3:/src/gtk1/region.cpp?ds=sidebyside diff --git a/src/gtk1/region.cpp b/src/gtk1/region.cpp index cb7a12beba..ce742d343b 100644 --- a/src/gtk1/region.cpp +++ b/src/gtk1/region.cpp @@ -16,7 +16,14 @@ #include #include +// Unfortunately the new way of implementing the region iterator +// doesn't work with GTK+ 2.0 or above (can't access a Region in +// GdkPrivateRegion) +#ifdef __WXGTK20__ +#define OLDCODE 1 +#else #define OLDCODE 0 +#endif //----------------------------------------------------------------------------- // wxRegion