]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlctrl/webkit/webkit.mm
replace use of deprecated GtkPixmap, gtk_container_border_width
[wxWidgets.git] / src / html / htmlctrl / webkit / webkit.mm
index a47639efacc33ae2fb53004bef1dd4124f272d6c..1ade64025be7a220a69888fa4cb811c9170ca21e 100755 (executable)
@@ -249,10 +249,7 @@ void wxWebKitCtrl::SetPageSource(wxString& source, const wxString& baseUrl){
     if ( !m_webView )
         return;
 
-    if (CanGetPageSource()){
-        [[m_webView mainFrame] loadHTMLString:(NSString*)wxNSStringWithWxString( source ) baseURL:[NSURL URLWithString:wxNSStringWithWxString( baseUrl )]];
-    }
-
+    [[m_webView mainFrame] loadHTMLString:(NSString*)wxNSStringWithWxString( source ) baseURL:[NSURL URLWithString:wxNSStringWithWxString( baseUrl )]];
 }
 
 void wxWebKitCtrl::OnSize(wxSizeEvent &event){
@@ -468,7 +465,7 @@ void wxWebKitCtrl::MacVisibilityChanged(){
 - (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame
 {
     if (frame == [sender mainFrame]){
-        webKitWindow->SetTitle(wxStringWithNSString( title ));
+        webKitWindow->SetLabel(wxStringWithNSString( title ));
     }
 }
 @end