#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"
(GInstanceInitFunc) egg_tray_icon_init
};
- our_type = g_type_register_static (GTK_TYPE_PLUG, "EggTrayIcon", &our_info, 0);
+ our_type = g_type_register_static (GTK_TYPE_PLUG, "EggTrayIcon",
+ &our_info, (GTypeFlags)0);
}
return our_type;
}
#endif /* __WXGTK20__ */
+#endif /* GTK_CHECK_VERSION(2, 1, 0) */