]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/glcanvas.cpp
always use V5 OPENFILENAME struct first and fall back on V4 if it doesn't work (repla...
[wxWidgets.git] / src / gtk / glcanvas.cpp
index 7ce06c5f0bc49e5f915e71fbea4ee7d8c034055c..98d32c753fac1374db19af149095ec80946afe43 100644 (file)
@@ -29,6 +29,7 @@ extern "C"
 }
 
 #include "wx/gtk/win_gtk.h"
+#include "wx/gtk/private.h"
 
 // DLL options compatibility check:
 #include "wx/build.h"
@@ -45,12 +46,6 @@ int wxGLCanvas::m_glxVersion = 0;
 //---------------------------------------------------------------------------
 
 XVisualInfo *g_vi = (XVisualInfo*) NULL;
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
 
 //---------------------------------------------------------------------------
 // wxGLContext
@@ -401,7 +396,6 @@ bool wxGLCanvas::Create( wxWindow *parent,
         colormap = gdk_colormap_new( visual, TRUE );
 
         gtk_widget_push_colormap( colormap );
-        gtk_widget_push_visual( visual );
 
         wxWindow::Create( parent, id, pos, size, style, name );
         m_glWidget = m_wxwindow;
@@ -426,7 +420,6 @@ bool wxGLCanvas::Create( wxWindow *parent,
 
     if (gtk_check_version(2,2,0) != NULL)
     {
-        gtk_widget_pop_visual();
         gtk_widget_pop_colormap();
     }