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:
parent
4dab527961
commit
14753ffea2
@ -30,6 +30,7 @@
|
|||||||
#include <Carbon/Carbon.h>
|
#include <Carbon/Carbon.h>
|
||||||
#include <WebKit/HIWebView.h>
|
#include <WebKit/HIWebView.h>
|
||||||
#include <WebKit/CarbonUtils.h>
|
#include <WebKit/CarbonUtils.h>
|
||||||
|
#include <WebKit/WebKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/html/webkit.h"
|
#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);
|
//printf("Carbon position x=%d, y=%d\n", GetPosition().x, GetPosition().y);
|
||||||
if (IsShown())
|
if (IsShown())
|
||||||
[m_webView display];
|
[(WebView*)m_webView display];
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWebKitCtrl::MacVisibilityChanged(){
|
void wxWebKitCtrl::MacVisibilityChanged(){
|
||||||
bool isHidden = !IsControlVisible( m_peer->GetControlRef());
|
bool isHidden = !IsControlVisible( m_peer->GetControlRef());
|
||||||
if (!isHidden)
|
if (!isHidden)
|
||||||
[m_webView display];
|
[(WebView*)m_webView display];
|
||||||
|
|
||||||
[m_webView setHidden:isHidden];
|
[m_webView setHidden:isHidden];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user