]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/glcanvas.cpp
A better compile fix for Wine (which lacks pbt.h).
[wxWidgets.git] / src / gtk / glcanvas.cpp
index 7d76807bfc9881f9f2995d1ededa83e01a18699b..85d0451334a94768604e00059099e2ce0830ccb2 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/frame.h"
+    #include "wx/colour.h"
+    #include "wx/module.h"
 #endif // WX_PRECOMP
 
-#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);