X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9fb5408fa2de7581235f9aea7370f8a95a0ec27..137c8bde085d6d5b7c459902d2ea1a198ab48765:/src/gtk/eggtrayicon.c diff --git a/src/gtk/eggtrayicon.c b/src/gtk/eggtrayicon.c index 6c4c3b1cf3..fb6a78067c 100644 --- a/src/gtk/eggtrayicon.c +++ b/src/gtk/eggtrayicon.c @@ -106,10 +106,13 @@ Anders #include "wx/platform.h" +#include + #ifdef __WXGTK20__ +#include +#if GTK_CHECK_VERSION(2, 1, 0) #include -#include #include "eggtrayicon.h" #define SYSTEM_TRAY_REQUEST_DOCK 0 @@ -145,7 +148,8 @@ egg_tray_icon_get_type (void) (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; @@ -435,3 +439,4 @@ egg_tray_icon_cancel_message (EggTrayIcon *icon, } #endif /* __WXGTK20__ */ +#endif /* GTK_CHECK_VERSION(2, 1, 0) */