X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5af86f4df50e22985c852afdcad1c7979d036b1b..bec76e18352b3b0a94b0b54c8d66159722651e8b:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 5634ab6e2b..72073cf314 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2912,7 +2912,7 @@ bool wxWindowGTK::GTKHandleFocusIn() // Notify the parent keeping track of focus for the kbd navigation // purposes that we got it. - wxChildFocusEvent eventChildFocus(this); + wxChildFocusEvent eventChildFocus(static_cast(this)); GTKProcessEvent(eventChildFocus); wxFocusEvent eventFocus(wxEVT_SET_FOCUS, GetId()); @@ -3569,7 +3569,7 @@ void wxWindowGTK::GtkSendPaintEvents() else { wxWindowDC dc( (wxWindow*)this ); - dc.SetClippingRegion( m_updateRegion ); + dc.SetDeviceClippingRegion( m_updateRegion ); // Work around gtk-qt <= 0.60 bug whereby the window colour // remains grey