]> git.saurik.com Git - wxWidgets.git/commitdiff
Include gdk/gdkkeysyms-compat.h.
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 6 Mar 2011 18:22:23 +0000 (18:22 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 6 Mar 2011 18:22:23 +0000 (18:22 +0000)
GTK+ 2.22 changed GDK_* keysym constants to GDK_KEY_* and introduced a new header for the old names. This header must be explicitly included in GTK+ 3, so do it for now. In the long run, we should migrate to the new names.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/listbox.cpp
src/gtk/radiobox.cpp
src/gtk/window.cpp

index 9a406184bd1db7f34d1be1681ceabba7b540514c..d62d0bf3a4920f992d96607928914462b816eaa7 100644 (file)
 #endif
 
 #include <gtk/gtk.h>
 #endif
 
 #include <gtk/gtk.h>
+
 #include <gdk/gdkkeysyms.h>
 #include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION(3,0,0)
+#include <gdk/gdkkeysyms-compat.h>
+#endif
 
 //-----------------------------------------------------------------------------
 // data
 
 //-----------------------------------------------------------------------------
 // data
index 3467b72318a8d242c59a48e90a92bcf2b19d9ff6..0f0c5350c78568d2cac046e30b1bac1411610533 100644 (file)
 #endif
 
 #include "wx/gtk/private.h"
 #endif
 
 #include "wx/gtk/private.h"
+
 #include <gdk/gdkkeysyms.h>
 #include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION(3,0,0)
+#include <gdk/gdkkeysyms-compat.h>
+#endif
 
 //-----------------------------------------------------------------------------
 // wxGTKRadioButtonInfo
 
 //-----------------------------------------------------------------------------
 // wxGTKRadioButtonInfo
index 85c1dfc1d147c33d4275dce3e2b8b8f014b7592f..3c32e7dfa62307e9b07f86d03f536d7e152f9e11 100644 (file)
 
 #include "wx/gtk/private.h"
 #include "wx/gtk/private/win_gtk.h"
 
 #include "wx/gtk/private.h"
 #include "wx/gtk/private/win_gtk.h"
-#include <gdk/gdkkeysyms.h>
+
 #include <gdk/gdkx.h>
 
 #include <gdk/gdkx.h>
 
+#include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION(3,0,0)
+#include <gdk/gdkkeysyms-compat.h>
+#endif
+
 #if !GTK_CHECK_VERSION(2,10,0)
     // GTK+ can reliably detect Meta key state only since 2.10 when
     // GDK_META_MASK was introduced -- there wasn't any way to detect it
 #if !GTK_CHECK_VERSION(2,10,0)
     // GTK+ can reliably detect Meta key state only since 2.10 when
     // GDK_META_MASK was introduced -- there wasn't any way to detect it