]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
add GetLo/Hi() test
[wxWidgets.git] / src / gtk / window.cpp
index 5634ab6e2bc3753995b903188b986dd8e5807a58..72073cf314712e6f96498c63a7c1da98c08c2b9b 100644 (file)
@@ -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<wxWindow*>(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