X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/498ace9e1f08b1e177b1a883ac69d12385e805b0..78cd9c69eb3f4c158fe10ce49325d57ec05d1306:/src/gtk/glcanvas.cpp diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index 352246f478..0e17b1e8a7 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -23,15 +23,10 @@ #include "wx/module.h" #endif // WX_PRECOMP -extern "C" -{ -#include "gtk/gtk.h" -#include "gdk/gdk.h" -#include "gdk/gdkx.h" -} +#include +#include #include "wx/gtk/win_gtk.h" -#include "wx/gtk/private.h" #if WXWIN_COMPATIBILITY_2_8 @@ -78,8 +73,6 @@ extern "C" { static gboolean gtk_glwindow_expose_callback( GtkWidget *WXUNUSED(widget), GdkEventExpose *gdk_event, wxGLCanvas *win ) { - // don't need to install idle handler, its done from "event" signal - win->m_exposed = true; win->GetUpdateRegion().Union( gdk_event->area.x, @@ -98,9 +91,6 @@ extern "C" { static void gtk_glcanvas_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation* alloc, wxGLCanvas *win ) { - if (g_isIdle) - wxapp_install_idle_handler(); - if (!win->m_hasVMT) return;