]> git.saurik.com Git - wxWidgets.git/commitdiff
More GTK+ 1.3.1 fixes
authorJulian Smart <julian@anthemion.co.uk>
Tue, 13 Feb 2001 17:40:08 +0000 (17:40 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 13 Feb 2001 17:40:08 +0000 (17:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/region.cpp
src/gtk/window.cpp
src/gtk1/region.cpp
src/gtk1/window.cpp

index cb7a12bebac9c598cc304476c77fab96c12ea983..ce742d343be2d29de26daceb351064f119397b0f 100644 (file)
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
 
+// 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
index af70202eaaa82dc1298283bad8f019c190a07a9e..02d5fb9d3563d5e6583c63beb147f27dcd65ab54 100644 (file)
@@ -219,7 +219,9 @@ extern bool g_mainThreadLocked;
 // debug
 //-----------------------------------------------------------------------------
 
+#ifndef __WXGTK20__
 #define DISABLE_STYLE_IF_BROKEN_THEME 1
+#endif
 
 #ifdef __WXDEBUG__
 
index cb7a12bebac9c598cc304476c77fab96c12ea983..ce742d343be2d29de26daceb351064f119397b0f 100644 (file)
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
 
+// 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
index af70202eaaa82dc1298283bad8f019c190a07a9e..02d5fb9d3563d5e6583c63beb147f27dcd65ab54 100644 (file)
@@ -219,7 +219,9 @@ extern bool g_mainThreadLocked;
 // debug
 //-----------------------------------------------------------------------------
 
+#ifndef __WXGTK20__
 #define DISABLE_STYLE_IF_BROKEN_THEME 1
+#endif
 
 #ifdef __WXDEBUG__