From 7eb8c6ee3e90554c94d05dc06e6826f832640927 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Mon, 24 May 2004 21:00:07 +0000 Subject: [PATCH] Fixes for Unicode build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/html/webkit.h | 6 +++--- src/html/htmlctrl/webkit/webkit.mm | 10 +++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/include/wx/html/webkit.h b/include/wx/html/webkit.h index b0656d9222..f007cf5302 100755 --- a/include/wx/html/webkit.h +++ b/include/wx/html/webkit.h @@ -41,7 +41,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxString("default_webkit_name")) + const wxString& name = wxT("webkitctrl")) { Create(parent, winID, strURL, pos, size, style, validator, name); }; @@ -51,7 +51,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxString("default_webkit_name")); + const wxString& name = wxT("webkitctrl")); virtual ~wxWebKitCtrl(); void LoadURL(const wxString &url); @@ -64,7 +64,7 @@ public: void Stop(); bool CanGetPageSource(); wxString GetPageSource(); - void SetPageSource(wxString& source, const wxString& baseUrl = wxString("")); + void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString); //we need to resize the webview when the control size changes //void OnSize(wxSizeEvent &event); diff --git a/src/html/htmlctrl/webkit/webkit.mm b/src/html/htmlctrl/webkit/webkit.mm index df80d539e6..9c9830b291 100755 --- a/src/html/htmlctrl/webkit/webkit.mm +++ b/src/html/htmlctrl/webkit/webkit.mm @@ -10,16 +10,12 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ - #pragma implementation "wxWebKit.h" + #pragma implementation "webkit.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - #ifndef WX_PRECOMP #include "wx/wx.h" #endif @@ -109,7 +105,7 @@ bool wxWebKitCtrl::Create(wxWindow *parent, { m_currentURL = strURL; - m_pageTitle = ""; + m_pageTitle = wxT(""); //still needed for wxCocoa?? /* @@ -178,7 +174,7 @@ void wxWebKitCtrl::LoadURL(const wxString &url) if( !m_webView ) return; - [[m_webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithCString:url.c_str()]]]]; + [[m_webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:wxNSStringWithWxString(url)]]]; m_currentURL = url; } -- 2.45.2