]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/eggtrayicon.c
wxDefaultSize.* and wxDefaultPosition.* to wxDefaultCoord.
[wxWidgets.git] / src / gtk / eggtrayicon.c
index 6c4c3b1cf3c677c2b7c5d9a60d3293e83ab43664..4d244e04164439f7bd3c2ec3418d9cc8de1fb37d 100644 (file)
@@ -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
@@ -434,4 +437,5 @@ egg_tray_icon_cancel_message (EggTrayIcon *icon,
                                      id, 0, 0);
 }
 
-#endif /* __WXGTK20__ */
+#endif // __WXGTK20__
+#endif // GTK_CHECK_VERSION(2, 1, 0)