X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..dcfd4ac4125092a50a81d1b8059ed7dcd09ca56e:/src/gtk/glcanvas.cpp?ds=sidebyside diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index 4ef6d70a22..85d0451334 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -18,12 +18,11 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/frame.h" + #include "wx/colour.h" + #include "wx/module.h" #endif // WX_PRECOMP -#include "wx/frame.h" -#include "wx/colour.h" -#include "wx/module.h" - extern "C" { #include "gtk/gtk.h" @@ -235,8 +234,7 @@ extern "C" { static void gtk_glwindow_expose_callback( GtkWidget *WXUNUSED(widget), GdkEventExpose *gdk_event, wxGLCanvas *win ) { - if (g_isIdle) - wxapp_install_idle_handler(); + // don't need to install idle handler, its done from "event" signal win->m_exposed = true; @@ -406,8 +404,6 @@ bool wxGLCanvas::Create( wxWindow *parent, gtk_widget_set_double_buffered( m_glWidget, FALSE ); - gtk_pizza_set_clear( GTK_PIZZA(m_wxwindow), FALSE ); - g_signal_connect (m_wxwindow, "realize", G_CALLBACK (gtk_glwindow_realized_callback), this);