]> git.saurik.com Git - wxWidgets.git/commitdiff
Mostly cosmetical preprocessor check modifications to last commit
authorMart Raudsepp <leio@gentoo.org>
Mon, 1 Aug 2005 15:39:46 +0000 (15:39 +0000)
committerMart Raudsepp <leio@gentoo.org>
Mon, 1 Aug 2005 15:39:46 +0000 (15:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/glcanvas.cpp
src/gtk1/glcanvas.cpp

index d81c4cbe575c280d1d64787f98f4901f4b9357d9..8d568a8924cc40121b6282d888e5f73c62ae10f8 100644 (file)
@@ -401,7 +401,7 @@ bool wxGLCanvas::Create( wxWindow *parent,
     GdkColormap *colormap;
 
     // MR: This needs a fix for lower gtk+ versions too. Might need to rethink logic (FIXME)
-#if GTK_CHECK_VERSION(2,2,0)
+#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,2,0)
     if (!gtk_check_version(2,2,0))
     {
         wxWindow::Create( parent, id, pos, size, style, name );
@@ -456,7 +456,9 @@ bool wxGLCanvas::Create( wxWindow *parent,
     gtk_signal_connect( GTK_OBJECT(m_widget), "size_allocate",
         GTK_SIGNAL_FUNC(gtk_glcanvas_size_callback), (gpointer)this );
 
+#ifdef __WXGTK20__
     if (gtk_check_version(2,2,0) != NULL)
+#endif
     {
         gtk_widget_pop_visual();
         gtk_widget_pop_colormap();
index d81c4cbe575c280d1d64787f98f4901f4b9357d9..8d568a8924cc40121b6282d888e5f73c62ae10f8 100644 (file)
@@ -401,7 +401,7 @@ bool wxGLCanvas::Create( wxWindow *parent,
     GdkColormap *colormap;
 
     // MR: This needs a fix for lower gtk+ versions too. Might need to rethink logic (FIXME)
-#if GTK_CHECK_VERSION(2,2,0)
+#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,2,0)
     if (!gtk_check_version(2,2,0))
     {
         wxWindow::Create( parent, id, pos, size, style, name );
@@ -456,7 +456,9 @@ bool wxGLCanvas::Create( wxWindow *parent,
     gtk_signal_connect( GTK_OBJECT(m_widget), "size_allocate",
         GTK_SIGNAL_FUNC(gtk_glcanvas_size_callback), (gpointer)this );
 
+#ifdef __WXGTK20__
     if (gtk_check_version(2,2,0) != NULL)
+#endif
     {
         gtk_widget_pop_visual();
         gtk_widget_pop_colormap();