]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix for gtk1
authorPaul Cornett <paulcor@bullseye.com>
Tue, 5 Apr 2011 15:50:54 +0000 (15:50 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 5 Apr 2011 15:50:54 +0000 (15:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/popupcmn.cpp

index 9bad6ac633a961b7bf47210029ebb62db1b6b3e1..f4b812330e39a3352990b41dd7cb979c6cd2d188 100644 (file)
 
 #ifdef __WXGTK__
     #include <gtk/gtk.h>
-    #include "wx/gtk/private/gtk2-compat.h"
+    #if GTK_CHECK_VERSION(2,0,0)
+        #include "wx/gtk/private/gtk2-compat.h"
+    #else
+        #define gtk_widget_get_window(x) x->window
+    #endif
 #elif defined(__WXMSW__)
     #include "wx/msw/private.h"
 #elif defined(__WXX11__)