fixing osx_cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-08-11 08:14:37 +00:00
parent 724cbfff65
commit b404a8f3b0

View File

@@ -326,6 +326,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
{
m_busy = false;
DontCreatePeer();
wxControl::Create(parent, winID, pos, size, style, wxDefaultValidator, name);
#if wxOSX_USE_CARBON
@@ -348,7 +349,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
m_webView = [[WebView alloc] initWithFrame:r
frameName:@"webkitFrame"
groupName:@"webkitGroup"];
m_peer = new wxWidgetCocoaImpl( this, m_webView );
SetPeer(new wxWidgetCocoaImpl( this, m_webView ));
#endif
MacPostControlCreate(pos, size);