]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsgtk.cpp
wxMDIFrames define DoGetClientSize() and not GetClientSize() to avoid hiding
[wxWidgets.git] / src / gtk / utilsgtk.cpp
index 513c3674e6dd3e796f895009372a0a38f318c878..92aac444826ca27e5be61305eb16a9b3b4e2775d 100644 (file)
@@ -26,7 +26,9 @@
 #include "glib.h"
 #include "gdk/gdk.h"
 #include "gtk/gtk.h"
+#ifndef __WXGTK20__
 #include "gtk/gtkfeatures.h"
+#endif
 #include "gdk/gdkx.h"
 
 #ifdef HAVE_X11_XKBLIB_H
@@ -77,7 +79,7 @@ bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
 
 void *wxGetDisplay()
 {
-    return gdk_display;
+    return GDK_DISPLAY();
 }
 
 void wxDisplaySize( int *width, int *height )