X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff654490b7cb185631a1dc4621094d88643ccf41..7fc2ce00f7df12a1e02c165ffdf772c21100bae6:/src/gtk/glcanvas.cpp diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index 3fc37ba80e..909c5c02e2 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -26,8 +26,6 @@ #include #include -#include "wx/gtk/win_gtk.h" - #if WXWIN_COMPATIBILITY_2_8 //----------------------------------------------------------------------------- @@ -56,7 +54,7 @@ gtk_glwindow_map_callback( GtkWidget * WXUNUSED(widget), wxGLCanvas *win ) { wxPaintEvent event( win->GetId() ); event.SetEventObject( win ); - win->GetEventHandler()->ProcessEvent( event ); + win->HandleWindowEvent( event ); win->m_exposed = false; win->GetUpdateRegion().Clear(); @@ -98,7 +96,7 @@ gtk_glcanvas_size_callback(GtkWidget *WXUNUSED(widget), wxSizeEvent event( wxSize(win->m_width,win->m_height), win->GetId() ); event.SetEventObject( win ); - win->GetEventHandler()->ProcessEvent( event ); + win->HandleWindowEvent( event ); } } @@ -234,7 +232,7 @@ bool wxGLCanvas::Create(wxWindow *parent, Window wxGLCanvas::GetXWindow() const { - GdkWindow *window = GTK_PIZZA(m_wxwindow)->bin_window; + GdkWindow *window = m_wxwindow->window; return window ? GDK_WINDOW_XWINDOW(window) : 0; } @@ -244,7 +242,7 @@ void wxGLCanvas::OnInternalIdle() { wxPaintEvent event( GetId() ); event.SetEventObject( this ); - GetEventHandler()->ProcessEvent( event ); + HandleWindowEvent( event ); m_exposed = false; GetUpdateRegion().Clear();