]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/eggtrayicon.c
Split some of the recent code out to make it more reusable.
[wxWidgets.git] / src / gtk1 / eggtrayicon.c
index de2777a4fd95e71c89d3e30543f26326c41af2c7..10aed866ae9a10939b2b27cb3cbff82c321e3a72 100644 (file)
@@ -107,9 +107,10 @@ Anders
 #include "wx/platform.h"
 
 #include <gdk/gdkx.h>
-#include <gtk/gtkversion.h>
 
-#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 1, 0)
+#ifdef __WXGTK20__
+#include <gtk/gtkversion.h>
+#if GTK_CHECK_VERSION(2, 1, 0)
 
 #include <string.h>
 #include "eggtrayicon.h"
@@ -437,3 +438,4 @@ egg_tray_icon_cancel_message (EggTrayIcon *icon,
 }
 
 #endif /* __WXGTK20__ */
+#endif /* GTK_CHECK_VERSION(2, 1, 0) */