]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected build fix, new code does work with GTK+ < 2.10
authorPaul Cornett <paulcor@bullseye.com>
Tue, 10 Feb 2009 03:43:30 +0000 (03:43 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 10 Feb 2009 03:43:30 +0000 (03:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/taskbar.h
src/gtk/taskbar.cpp

index 062c3c3306e2e18259ff0e066bb6c5c6666ece3f..fdc2ea0f3a0b4f9344a112445897addf67240ce5 100644 (file)
@@ -65,7 +65,7 @@ private:
     #include "wx/palmos/taskbar.h"
 #elif defined(__WXMSW__)
     #include "wx/msw/taskbar.h"
     #include "wx/palmos/taskbar.h"
 #elif defined(__WXMSW__)
     #include "wx/msw/taskbar.h"
-#elif defined(__WXGTK210__)
+#elif defined(__WXGTK20__)
     #include "wx/gtk/taskbar.h"
 #elif defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__)
     #include "wx/unix/taskbarx11.h"
     #include "wx/gtk/taskbar.h"
 #elif defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__)
     #include "wx/unix/taskbarx11.h"
index f3069bb79ec623b86328684d864a5888e8c5aea7..8a25c000fdd528c3302110faf21d5c28655e6974 100644 (file)
@@ -12,7 +12,7 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#if wxUSE_TASKBARICON && defined(__WXGTK210__)
+#if wxUSE_TASKBARICON
 
 #include "wx/taskbar.h"
 
 
 #include "wx/taskbar.h"
 
 #include "eggtrayicon.h"
 #include <gtk/gtk.h>
 
 #include "eggtrayicon.h"
 #include <gtk/gtk.h>
 
+#if !GTK_CHECK_VERSION(2,10,0)
+    typedef struct _GtkStatusIcon GtkStatusIcon;
+#endif
+
 class wxTaskBarIcon::Private
 {
 public:
 class wxTaskBarIcon::Private
 {
 public: