]> git.saurik.com Git - wxWidgets.git/commitdiff
gtk-universal build fixes
authorPaul Cornett <paulcor@bullseye.com>
Mon, 7 Jul 2008 16:00:41 +0000 (16:00 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 7 Jul 2008 16:00:41 +0000 (16:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/valgen.cpp
src/gtk/window.cpp

index 37cefb5e74435debbe15ef6b5e633e0427c05140..1266e49a905cc5c69181586525aeb1d5948707e5 100644 (file)
@@ -146,7 +146,7 @@ bool wxGenericValidator::TransferToWindow(void)
             return true;
         }
     } else
-#if defined(__WXMAC__) || defined(__WXGTK20__)
+#if (defined(__WXMAC__) || defined(__WXGTK20__)) && !defined(__WXUNIVERSAL__)
     if (m_validatorWindow->IsKindOf(CLASSINFO(wxBitmapToggleButton)) )
     {
         wxBitmapToggleButton * pControl = (wxBitmapToggleButton *) m_validatorWindow;
index 89c6390b6a09512eef0dafa963677e48d1b43a1c..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());