Commit Graph

70478 Commits

Author SHA1 Message Date
Maarten Bent
1f36582d87 Initialize wxWinHTTP when wxWebSessionFactoryWinHTTP is created 2021-03-23 00:42:46 +01:00
Maarten Bent
953b71196b Fix extra semi warning in wxWebSessionCURL implementation 2021-03-23 00:42:06 +01:00
Maarten Bent
c4343ed2d4 Load winhttp functions dynamically
winhttp cannot be added to the makefiles, because some MinGW distributions
(MinGW 5.3) do not have this library.
2021-03-23 00:42:02 +01:00
Maarten Bent
3cc48e2e56 Fix checking __MINGW64_VERSION_MAJOR for wxUSE_WEBREQUEST_WINHTTP
It is not yet defined for setup.h, so check it in chkconf.h.
Fixes #19105
2021-03-23 00:39:16 +01:00
Vadim Zeitlin
c24193f299 Merge branch 'stl-fixes'
Minor fixes to STL build.

See https://github.com/wxWidgets/wxWidgets/pull/2289
2021-03-22 23:24:13 +01:00
Vadim Zeitlin
b5f7ed2169 Manually update expired key for ddebs.ubuntu.com repository
Retrieve the latest key, which was extended for another year.

See https://bugs.launchpad.net/ubuntu/+source/ubuntu-keyring/+bug/1920640
2021-03-22 23:23:56 +01:00
Vadim Zeitlin
aad3bfdd52 Test clang using libc++ in GitHub Actions CI build
This is more useful than testing clang with libstdc++ which we also use
in the other CI builds with gcc.
2021-03-22 18:44:34 +01:00
Vadim Zeitlin
f0398d1267 Remove useless wxIntegerHash assignment operator
This doesn't seem to be doing anything useful but does result in
-Wdeprecated-copy from clang 10, as normally a custom copy ctor should
be defined as well, if the assignment operator is defined.
2021-03-22 18:43:00 +01:00
Vadim Zeitlin
1cdf59ff92 Remove "basic STL functionality" configure and CMake checks
This check didn't work in configure when using C++17 or later, as
std::bind2nd() is removed in C++17 and so was worse than useless as it
actually prevented --enable-stl from working.

And while it was only done when using C++98 in CMake, it still seems
pretty useless there too as there should be no environments in which
basic stuff like std::vector<> or std::find_if() is not available.

So just remove it entirely.
2021-03-22 18:38:10 +01:00
Vadim Zeitlin
71eff92873 Remove CppUnit boilerplate from XRC unit test
No real changes, just simplify by using CATCH macros and a simple
fixture instead of CppUnit::TestCase.
2021-03-22 15:31:51 +01:00
Paul Cornett
91bb265e90 Fix build with wxNO_RTTI
wxWidgets RTTI can be used instead
2021-03-21 12:16:12 -07:00
Paul Cornett
ef5076f852 Fix build with wxUSE_PALETTE==0 2021-03-21 12:16:01 -07:00
Artur Wieczorek
dc11bb18cf Use new CoreGraphics API to reset clipping region
Since 10.13 there is available a dedicated CGContextResetClip()
API to reset a clipping region so we don't need to use current
workaround anymore.
2021-03-21 18:44:06 +01:00
Stefan Csomor
d1c0d3b18c keeping the OSX specific use of origin for non-native borders
fixes #19108
2021-03-20 22:09:31 +01:00
Vadim Zeitlin
362012ab9c Merge branch 'cmake_warnings' of https://github.com/TcT2k/wxWidgets
Enable more warnings for GCC/Clang with CMake.

See https://github.com/wxWidgets/wxWidgets/pull/2281
2021-03-19 22:41:01 +01:00
Vadim Zeitlin
5d6525ccf1 Merge branch 'webview_useragent' of https://github.com/TcT2k/wxWidgets
Add support for custom user agent to wxWebView.

See https://github.com/wxWidgets/wxWidgets/pull/2280
2021-03-19 22:39:00 +01:00
Pierluigi Passaro
b824ed8fe6 Support Wayland in wxGTK wxMediaCtrl
For GTK, the current implementation assumes X11 is the only window option.
Introduce runtime checks to manage Wayland too.

Signed-off-by: Pierluigi Passaro <pierluigi.p@variscite.com>

Closes https://github.com/wxWidgets/wxWidgets/pull/2257
2021-03-19 22:36:59 +01:00
Maarten Bent
5bdd5e1432 Check if wxUSE_WEBREQUEST is defined 2021-03-18 20:49:57 +01:00
Tobias Taschner
2487a48b66 Implement user agent access for Edge 2021-03-17 22:01:46 +01:00
Paul Cornett
c82e13068a Fix comment typo 2021-03-17 10:30:34 -07:00
Paul Cornett
e375a68371 Restrict linkage of local functions 2021-03-17 10:26:18 -07:00
Paul Cornett
5154780bbf Avoid some -Wcast-qual warnings 2021-03-17 10:16:32 -07:00
Paul Cornett
12028057d8 Update config.{guess,sub} scripts to latest versions 2021-03-17 09:53:58 -07:00
Paul Cornett
b5d4c6068e Make some member functions const 2021-03-17 09:44:48 -07:00
Tobias Taschner
41a0da1187 Fix unused parameter warning 2021-03-17 12:58:17 +01:00
Tobias Taschner
c69193d3da CMake: enable more warnings for GCC/Clang
Enable the same warnings for GCC and Clang as are
enabled with a configure build
2021-03-17 12:58:17 +01:00
Tobias Taschner
3d568c7105 Create wxWebViewEdge implementation in constructor
This helps with various potential error when using two step creation
2021-03-17 09:42:01 +01:00
Tobias Taschner
7f7191066b Implement user agent access for GTK 2021-03-17 09:42:01 +01:00
Tobias Taschner
18f5b01cc6 Implement user agent access for macOS 2021-03-17 09:42:01 +01:00
Paul Cornett
34473971bb Fix wxNotebook HitTest with GTK3
Avoid invisible tabs. See 19103
2021-03-16 20:22:02 -07:00
Tobias Taschner
97e469c255 Add access to user agent for wxWebView
Allow setting a custom user agent for a webview.
Also allow access to the current user agent.
2021-03-16 22:53:00 +01:00
Stefan Csomor
d1efcc374b Adding GLKit to console and cmake builds 2021-03-15 14:09:07 +01:00
Vadim Zeitlin
4ec8f8a221 Exclude Xcode project files from whitespace style checks
These files contain TABs and didn't pass the check and, of course, we're
not interested in the style in which they're written anyhow.
2021-03-15 11:36:46 +01:00
Stefan Csomor
eff81745ba guarding implementation against compilation under iOS SDK < 13 2021-03-15 11:35:48 +01:00
Stefan Csomor
4455b6e784 using specialized native view for OpenGL as in osx 2021-03-15 10:17:20 +01:00
Stefan Csomor
a087998d96 cleanup and support for drawRect without a valid graphics context 2021-03-15 08:45:02 +01:00
Stefan Csomor
0afd3143d8 support building against iOS 12 SDK
where UIMenuElement is not present yet
2021-03-15 08:43:15 +01:00
Stefan Csomor
d2913e560e fixing xcodeproj for cocoa
fix_xcode_ids.py, removal of webkit.mm and adding cgreddlgg.cpp
2021-03-14 15:28:34 +01:00
Stefan Csomor
1b2a1832f7 running fix_xcode_ids.py over iphone project
we missed that one after the last changes
2021-03-14 15:27:41 +01:00
Stefan Csomor
16facf7d70 removing deleted webkit.mm from iphone proj 2021-03-14 15:24:47 +01:00
Vadim Zeitlin
77593c5996 Add return value to wxSafeShowMessage()
This allows the caller to log the message to the console in addition to
showing the message box, for example. Previously, this would be
impossible to do without getting the duplicates if the message box was
not shown, but now it is.
2021-03-14 13:18:36 +01:00
Vadim Zeitlin
5e1f7beafe Merge branch 'regex-tests'
Fix regex-related tests to actually run as part of the test suite again.

See https://github.com/wxWidgets/wxWidgets/pull/2279
2021-03-14 13:10:14 +01:00
Vadim Zeitlin
89d1ec631b Make built-in regex library tests run again too
These tests were also broken by transition to CATCH and didn't run any
longer.

Fix this by replacing CppUnit test suite objects with CATCH test cases
and using a simple helper CheckRE() function instead of creating
complicated test objects hierarchies.
2021-03-14 13:10:14 +01:00
Vadim Zeitlin
7d46755124 Make wxRegEx unit tests actually run again
These tests didn't run at all since the changes of e70fc11ef1 (Replace
CppUnit with Catch for unit tests, 2017-11-01) that removed CppUnit:
while they still compiled, the required suite functions were not called
automatically any longer and so nothing happened during run-time.

Finish really removing CppUnit stuff now and just use simple functions
for the checks: this might not be as elegant, but is much simpler and
more transparent.
2021-03-14 13:10:14 +01:00
Vadim Zeitlin
16495e424d Merge branch 'utf8-std-string'
Add wxString::utf8_string().

See https://github.com/wxWidgets/wxWidgets/pull/2265
2021-03-14 13:10:13 +01:00
Vadim Zeitlin
57bba0b990 Suppress a leak sanitizer report in libxrandr2
This happens from inside gtk_init_check(), i.e. is not a "real" leak
anyhow because it can be leaked at most once. Just ignore it.
2021-03-14 13:10:13 +01:00
Artur Wieczorek
04020e4509 Fix wxButon layout with right- and bottom-aligned images (wxMSW)
It looks only left- and top-aligned images stored in the image list
(BUTTON_IMAGELIST) are drawn with proper margins (with BCM_SETIMAGELIST).
For some reasons (bug in Win API?) margins for right- and bottom-aligned
images are applied only on one side of the image so the image drawn in
the button is misplaced in relation to the label.
It seems the only possible workaround for such images is to switch to
the owner-drawn mode and to draw the image manually in the proper location.

Closes #13130.
2021-03-14 12:57:09 +01:00
Artur Wieczorek
99983325d6 Use proper data structure describing image of owner-drawn wxButton (wxMSW)
When wxButton is switched to owner-drawn mode we need to store its image
data in the dedicated wxODButtonImageData structure. We shouldn't use
in this case wxXPButtonImageData structure because it is dedicated for
native buttons and every time it's updated a BCM_SETIMAGELIST message is
sent to the button what is unnecessary action.
2021-03-14 12:40:39 +01:00
Vadim Zeitlin
ac4634b294 Update just the colour, not font, in wxOSX SetForegroundColour()
Calling wxWindow::SetForegroundColour() also changed the window font,
which was unexpected and unnecessary.

Add a separate peer SetForegroundColour() method and implement it to
change just the colour in Cocoa version (and leave unimplemented, just
as it was before, for iOS) and use it in wxWindow to avoid the font
change.
2021-03-13 23:03:28 +01:00
Vadim Zeitlin
ede4ff9490 Factor out wxWidgetCocoaImpl::GetViewWithText()
Extract this function from wxWidgetCocoaImpl::SetFont() to allow its
reuse.

No changes, this is a pure refactoring.
2021-03-13 23:01:21 +01:00