X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fee7a683ed9abfaa40359131976cf019fc256702..abb4f9c93715f5b00c526203af96ed2938a1a2c3:/src/gtk/glcanvas.cpp diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index d81c4cbe57..688402fd99 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "glcanvas.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -401,7 +397,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 +452,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();