]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/popupcmn.cpp
Fix typo in last commit
[wxWidgets.git] / 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__)