Tiger compatibility fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2005-04-27 15:41:06 +00:00
parent 4dab527961
commit 14753ffea2

View File

@ -30,6 +30,7 @@
#include <Carbon/Carbon.h>
#include <WebKit/HIWebView.h>
#include <WebKit/CarbonUtils.h>
#include <WebKit/WebKit.h>
#endif
#include "wx/html/webkit.h"
@ -388,14 +389,14 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){
//printf("Carbon position x=%d, y=%d\n", GetPosition().x, GetPosition().y);
if (IsShown())
[m_webView display];
[(WebView*)m_webView display];
event.Skip();
}
void wxWebKitCtrl::MacVisibilityChanged(){
bool isHidden = !IsControlVisible( m_peer->GetControlRef());
if (!isHidden)
[m_webView display];
[(WebView*)m_webView display];
[m_webView setHidden:isHidden];
}