X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9fb5408fa2de7581235f9aea7370f8a95a0ec27..262ce38a2af9de50f6efca91463123c75a237ed4:/src/gtk1/eggtrayicon.c?ds=sidebyside

diff --git a/src/gtk1/eggtrayicon.c b/src/gtk1/eggtrayicon.c
index 6c4c3b1cf3..10aed866ae 100644
--- a/src/gtk1/eggtrayicon.c
+++ b/src/gtk1/eggtrayicon.c
@@ -106,10 +106,13 @@ Anders
 
 #include "wx/platform.h"
 
+#include <gdk/gdkx.h>
+
 #ifdef __WXGTK20__
+#include <gtk/gtkversion.h>
+#if GTK_CHECK_VERSION(2, 1, 0)
 
 #include <string.h>
-#include <gdk/gdkx.h>
 #include "eggtrayicon.h"
 
 #define SYSTEM_TRAY_REQUEST_DOCK    0
@@ -435,3 +438,4 @@ egg_tray_icon_cancel_message (EggTrayIcon *icon,
 }
 
 #endif /* __WXGTK20__ */
+#endif /* GTK_CHECK_VERSION(2, 1, 0) */