adaptions for m_peer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5b8f917c30
commit
72213209b7
@ -147,11 +147,11 @@ bool wxWebKitCtrl::Create(wxWindow *parent,
|
||||
m_macIsUserPane = false;
|
||||
wxControl::Create(parent, m_windowID, pos, size, style , validator , name);
|
||||
WebInitForCarbon();
|
||||
HIWebViewCreate( (HIViewRef*) &m_macControl );
|
||||
HIWebViewCreate( (HIViewRef*) *m_peer );
|
||||
|
||||
m_webView = (WebView*) HIWebViewGetWebView( (HIViewRef) m_macControl );
|
||||
m_webView = (WebView*) HIWebViewGetWebView( (HIViewRef) *m_peer );
|
||||
MacPostControlCreate(pos, size);
|
||||
HIViewSetVisible( (HIViewRef) m_macControl, true );
|
||||
HIViewSetVisible( (HIViewRef) *m_peer, true );
|
||||
[m_webView setHidden:false];
|
||||
#endif
|
||||
|
||||
@ -293,7 +293,7 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){
|
||||
}
|
||||
|
||||
void wxWebKitCtrl::MacVisibilityChanged(){
|
||||
bool isHidden = !IsControlVisible( (HIViewRef)m_macControl);
|
||||
bool isHidden = !IsControlVisible( (HIViewRef)*m_peer);
|
||||
[m_webView setHidden:isHidden];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user