]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/eggtrayicon.c
implement wxEventLoop::DispatchTimeout() for wxGTK (thanks Paul) and rewrote it to...
[wxWidgets.git] / src / gtk1 / eggtrayicon.c
index de2777a4fd95e71c89d3e30543f26326c41af2c7..cd36bde116886606462a849448eef3966f5186bc 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"
@@ -134,7 +135,7 @@ egg_tray_icon_get_type (void)
 
   if (our_type == 0)
     {
-      static const GTypeInfo our_info =
+      const GTypeInfo our_info =
       {
        sizeof (EggTrayIconClass),
        (GBaseInitFunc) NULL,
@@ -147,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;
@@ -437,3 +439,4 @@ egg_tray_icon_cancel_message (EggTrayIcon *icon,
 }
 
 #endif /* __WXGTK20__ */
+#endif /* GTK_CHECK_VERSION(2, 1, 0) */