Created
May 27, 2015 04:08
-
-
Save greymouser/9eadc0fdea64b906c41e to your computer and use it in GitHub Desktop.
wxWidgets-3.0.2_macosx10.10_build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -urN wxWidgets-3.0.2/docs/changes.txt wxWidgets-3.0.2.patch/docs/changes.txt | |
--- wxWidgets-3.0.2/docs/changes.txt 2014-10-06 17:33:44.000000000 -0400 | |
+++ wxWidgets-3.0.2.patch/docs/changes.txt 2015-05-27 00:05:17.000000000 -0400 | |
@@ -573,6 +573,13 @@ | |
was added. | |
+3.0.2: patched for OSX 10.10 build | |
+---------------------------- | |
+ | |
+wxOSX: | |
+ | |
+- Compilation fix for wxWebView under 10.10. | |
+ | |
3.0.2: (released 2014-10-06) | |
---------------------------- | |
@@ -885,10 +892,10 @@ | |
- Support hexadecimal numbers in wxSpinCtrl. | |
- Respect window max size in wxBoxSizer (Nathan Ridge). | |
- Add support for searching in wxWebView for MSW and GTK (Allonii). | |
-- Add generic wxFileSystem support to wxWebView with | |
+- Add generic wxFileSystem support to wxWebView with | |
wxWebViewFSHandler (Nick Matthews). | |
- Add possibility to disable context menu in wxWebView. | |
-- Add ability to register custom wxWebView backends using | |
+- Add ability to register custom wxWebView backends using | |
wxWebView::RegisterFactory and a wxWebViewFactory derived class. | |
- Add possibility to hide and show again wxRibbonBar pages (wxBen). | |
- Add wxRibbonBar pages highlighting (wxBen). | |
diff -urN wxWidgets-3.0.2/include/wx/defs.h wxWidgets-3.0.2.patch/include/wx/defs.h | |
--- wxWidgets-3.0.2/include/wx/defs.h 2014-10-06 17:33:44.000000000 -0400 | |
+++ wxWidgets-3.0.2.patch/include/wx/defs.h 2015-05-27 00:04:28.000000000 -0400 | |
@@ -3169,14 +3169,22 @@ | |
DECLARE_WXCOCOA_OBJC_CLASS(UIEvent); | |
DECLARE_WXCOCOA_OBJC_CLASS(NSSet); | |
DECLARE_WXCOCOA_OBJC_CLASS(EAGLContext); | |
+DECLARE_WXCOCOA_OBJC_CLASS(UIWebView); | |
typedef WX_UIWindow WXWindow; | |
typedef WX_UIView WXWidget; | |
typedef WX_EAGLContext WXGLContext; | |
typedef WX_NSString* WXGLPixelFormat; | |
+typedef WX_UIWebView OSXWebViewPtr; | |
#endif | |
+#if wxOSX_USE_COCOA_OR_CARBON | |
+DECLARE_WXCOCOA_OBJC_CLASS(WebView); | |
+typedef WX_WebView OSXWebViewPtr; | |
+#endif | |
+ | |
+ | |
#endif /* __WXMAC__ */ | |
/* ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port */ | |
diff -urN wxWidgets-3.0.2/include/wx/html/webkit.h wxWidgets-3.0.2.patch/include/wx/html/webkit.h | |
--- wxWidgets-3.0.2/include/wx/html/webkit.h 2014-10-06 17:33:44.000000000 -0400 | |
+++ wxWidgets-3.0.2.patch/include/wx/html/webkit.h 2015-05-27 00:04:28.000000000 -0400 | |
@@ -18,7 +18,6 @@ | |
#endif | |
#include "wx/control.h" | |
-DECLARE_WXCOCOA_OBJC_CLASS(WebView); | |
// ---------------------------------------------------------------------------- | |
// Web Kit Control | |
@@ -107,7 +106,7 @@ | |
wxString m_currentURL; | |
wxString m_pageTitle; | |
- WX_WebView m_webView; | |
+ OSXWebViewPtr m_webView; | |
// we may use this later to setup our own mouse events, | |
// so leave it in for now. | |
diff -urN wxWidgets-3.0.2/include/wx/osx/webview_webkit.h wxWidgets-3.0.2.patch/include/wx/osx/webview_webkit.h | |
--- wxWidgets-3.0.2/include/wx/osx/webview_webkit.h 2014-10-06 17:33:44.000000000 -0400 | |
+++ wxWidgets-3.0.2.patch/include/wx/osx/webview_webkit.h 2015-05-27 00:04:28.000000000 -0400 | |
@@ -158,7 +158,7 @@ | |
wxWindowID m_windowID; | |
wxString m_pageTitle; | |
- wxObjCID m_webView; | |
+ OSXWebViewPtr m_webView; | |
// we may use this later to setup our own mouse events, | |
// so leave it in for now. | |
diff -urN wxWidgets-3.0.2/src/osx/webview_webkit.mm wxWidgets-3.0.2.patch/src/osx/webview_webkit.mm | |
--- wxWidgets-3.0.2/src/osx/webview_webkit.mm 2014-10-06 17:33:44.000000000 -0400 | |
+++ wxWidgets-3.0.2.patch/src/osx/webview_webkit.mm 2015-05-27 00:04:28.000000000 -0400 | |
@@ -296,7 +296,7 @@ | |
wxWebViewWebKit* webKitWindow; | |
} | |
-- initWithWxWindow: (wxWebViewWebKit*)inWindow; | |
+- (id)initWithWxWindow: (wxWebViewWebKit*)inWindow; | |
@end | |
@@ -305,7 +305,7 @@ | |
wxWebViewWebKit* webKitWindow; | |
} | |
-- initWithWxWindow: (wxWebViewWebKit*)inWindow; | |
+- (id)initWithWxWindow: (wxWebViewWebKit*)inWindow; | |
@end | |
@@ -314,7 +314,7 @@ | |
wxWebViewWebKit* webKitWindow; | |
} | |
-- initWithWxWindow: (wxWebViewWebKit*)inWindow; | |
+- (id)initWithWxWindow: (wxWebViewWebKit*)inWindow; | |
@end | |
@@ -442,7 +442,7 @@ | |
if ( !m_webView ) | |
return; | |
- [(WebView*)m_webView goBack]; | |
+ [m_webView goBack]; | |
} | |
void wxWebViewWebKit::GoForward() | |
@@ -450,7 +450,7 @@ | |
if ( !m_webView ) | |
return; | |
- [(WebView*)m_webView goForward]; | |
+ [m_webView goForward]; | |
} | |
void wxWebViewWebKit::Reload(wxWebViewReloadFlags flags) | |
@@ -849,7 +849,7 @@ | |
if ( !m_webView ) | |
return; | |
- [(WebView*)m_webView cut:m_webView]; | |
+ [m_webView cut:m_webView]; | |
} | |
void wxWebViewWebKit::Copy() | |
@@ -857,7 +857,7 @@ | |
if ( !m_webView ) | |
return; | |
- [(WebView*)m_webView copy:m_webView]; | |
+ [m_webView copy:m_webView]; | |
} | |
void wxWebViewWebKit::Paste() | |
@@ -865,7 +865,7 @@ | |
if ( !m_webView ) | |
return; | |
- [(WebView*)m_webView paste:m_webView]; | |
+ [m_webView paste:m_webView]; | |
} | |
void wxWebViewWebKit::DeleteSelection() | |
@@ -873,7 +873,7 @@ | |
if ( !m_webView ) | |
return; | |
- [(WebView*)m_webView deleteSelection]; | |
+ [m_webView deleteSelection]; | |
} | |
bool wxWebViewWebKit::HasSelection() const | |
@@ -1007,7 +1007,7 @@ | |
@implementation WebViewLoadDelegate | |
-- initWithWxWindow: (wxWebViewWebKit*)inWindow | |
+- (id)initWithWxWindow: (wxWebViewWebKit*)inWindow | |
{ | |
[super init]; | |
webKitWindow = inWindow; // non retained | |
@@ -1197,7 +1197,7 @@ | |
@implementation WebViewPolicyDelegate | |
-- initWithWxWindow: (wxWebViewWebKit*)inWindow | |
+- (id)initWithWxWindow: (wxWebViewWebKit*)inWindow | |
{ | |
[super init]; | |
webKitWindow = inWindow; // non retained | |
@@ -1335,7 +1335,7 @@ | |
@implementation WebViewUIDelegate | |
-- initWithWxWindow: (wxWebViewWebKit*)inWindow | |
+- (id)initWithWxWindow: (wxWebViewWebKit*)inWindow | |
{ | |
[super init]; | |
webKitWindow = inWindow; // non retained |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment