Commit graph

72994 commits

Author SHA1 Message Date
Vadim Zeitlin
844e51e672 Revert "Temporarily change the release to 3.2.0-rc1"
This reverts commit 4a286c1868 to set the
version to 3.2.0 again.
2022-06-30 00:21:33 +02:00
Vadim Zeitlin
964a7d2e4f Merge branch 'version-info-revision'
Add build number to wxVersionInfo and use it for IE/Edge web view
backends versions.

Closes #22455.
2022-06-29 22:51:44 +02:00
Ronny Krüger
18b519043e Return complete versions of Edge and IE backends
Since wxVersionInfo supports four parts now, we can return the complete
version from the Edge and IE backends to clients.
2022-06-29 22:51:16 +02:00
Ronny Krüger
8ef6f9fa27 Add a 'revision' component to wxVersionInfo
Some versions consist of four parts with the last part being called the
revision or build number. wxVersionInfo is now able to save such a
fourth number.
2022-06-29 22:50:12 +02:00
Vadim Zeitlin
3fcf4a5f74 Fix Windows wxDynamicLibrary tests build after recent change
Fix a mistake in e32f49bca0 (Do run DynamicLibrary::Load unit test under
Linux, 2022-06-29).
2022-06-29 22:42:10 +02:00
Vadim Zeitlin
b44b4ee78b Fix size of the requested bitmap bundle in wxToolBar XRC handler
We need to pass the physical size, not scaled by DPI, as the "size"
parameter of GetBitmapBundle(), so that a user-defined art provider
could use it to select one of the available bitmap sizes (which will
then be scaled, if necessary, by wxBitmapBundle itself).

This change is not 100% backwards-compatible because, in theory, bitmap
sizes could be specified using dialog units previously, but this is not
supported any more. However in practice this never happened because it
simply doesn't make sense to use dialog units for the bitmap sizes and
it doesn't seem worth complicating the code by adding another XRC type
of "DPI-independent pixels that can be expressed in dialog units",
especially considering that DUs are DPI-dependent by definition.

See #22584.
2022-06-29 22:32:25 +02:00
Vadim Zeitlin
ad0b90e56a Merge branch 'ci-ubuntu-22.04'
Fix CI scripts to support Ubuntu 22.04 and run the ASAN build there.

See #22585.
2022-06-29 22:29:17 +02:00
Vadim Zeitlin
7def27f1c2 Run ASAN CI builds under Ubuntu 22.04
Leak sanitizer regularly crashes under Ubuntu 20.04, so try using the
newer version in the hope that it will work better there.
2022-06-29 22:27:48 +02:00
Vadim Zeitlin
a9884284f5 Fix pip installation problem under Ubuntu 22.04
pip 19.1 seems to be incompatible with Python 3.10 used there.
2022-06-29 22:27:48 +02:00
Vadim Zeitlin
e3adac72ac Work around error with libgstreamer1.0-dev under Ubuntu 22.04
Installing this package directly fails because of a conflict between one
of its dependencies and the already installed libc++-dev which depends
on another, incompatible, version of the same library.

Work around this by installing libunwind-dev directly, which is enough
to make apt uninstall libc++-dev and libunwind-14-dev that it depends on
instead of just stopping with an error.

It's not really clear how are we supposed to use clang with libc++ in
this environment, but this at least allows to build with gcc.
2022-06-29 22:27:48 +02:00
Vadim Zeitlin
e32f49bca0 Do run DynamicLibrary::Load unit test under Linux
Use existing path for libc.so on Linux/x86_64 platforms to prevent the
test from just exiting without doing anything.

Also don't give a compilation error for unknown platforms, just a
run-time warning is sufficient.
2022-06-29 22:25:08 +02:00
Vadim Zeitlin
c1a573d216 Initialize unused variable in FileKindTestCase to avoid a warning
Avoid -Wmaybe-uninitialized from gcc 11.
2022-06-29 22:10:55 +02:00
Paul Cornett
8064abb0d6 Fix wxListBox selection colors with non-default background on GTK3
Although GtkEntry uses a "selection" CSS node since 3.20, other widgets
still use ":selected", so apply both.
See #22583
2022-06-29 08:53:45 -07:00
Vadim Zeitlin
2e555335e4 Merge branch 'memorydc-scale-factor-docs'
Improve wxMemoryDC docs.

See #22567.

See #22581.
2022-06-29 17:21:58 +02:00
Vadim Zeitlin
b95f2b699d Clarify that wxDC::CopyAttributes() doesn't copy scaling factor
Also show an example of setting the scaling factor in wxMemoryDC
documentation.
2022-06-28 22:50:24 +02:00
Vadim Zeitlin
b9a84dcae5 Improve wxMemoryDC documentation
Try to explain the difference between SelectObject() and
SelectObjectAsSource() more clearly.
2022-06-28 22:45:30 +02:00
Paul Cornett
8c57b9ada4 Fix wxCURSOR_SIZING with Wayland
Cursor themes don't have "sizing", so use "move" instead.
See #22577
2022-06-28 11:47:32 -07:00
Kaya Zeren
b0e95073f4 Update Turkish translations for 3.2.0 2022-06-28 14:04:57 +02:00
naveen
64add326f6 Restrict job permissions in GitHub actions workflows
Restrict the GitHub token permissions only to the required ones, i.e.
just read-only access to the code.

This is done in order to reduce the potential harm in case of a
malicious pull request, see GitHub blog post at
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

Closes #22574.
2022-06-28 14:00:44 +02:00
Vadim Zeitlin
d5ed77da53 Recognize current GNOME versions in GetDesktopEnvironment()
GNOME session manager currently returns "gnome-session", but we only
checked for "GnomeSM" value, which was apparently used in GNOME 2 or
maybe even earlier.

Check for the presence of "GNOME" substring anywhere in the session
manager name (ignoring case) to cover both values and also do the same
for KDE for consistency.
2022-06-28 01:59:02 +02:00
Vadim Zeitlin
525d55a0f5 Document that major and minor versions must be updated manually
We probably could change inc_release to do this too, but considering the
frequency of our minor (let alone major) releases, it doesn't seem to be
worth it.
2022-06-27 18:37:12 +02:00
Vadim Zeitlin
402f0db6f8 Update file used for building MSVS binaries to use 3.2.0 too
This should have been part of 2a2308d5ed (Update version to 3.2.0 and
rebake and rerun autoconf, 2022-06-13).
2022-06-27 18:36:37 +02:00
Vadim Zeitlin
c32900f5d2 Update 3.2.0-rc1 release files checksums 2022-06-27 17:32:24 +02:00
Vadim Zeitlin
4a286c1868 Temporarily change the release to 3.2.0-rc1
This commit will be simply reverted before the final 3.2.0 release.
2022-06-27 17:19:35 +02:00
Vadim Zeitlin
741647f076 Add more changes since v3.1.7 to the change log 2022-06-27 17:09:21 +02:00
Vadim Zeitlin
7e1cbe8f79 Merge branch 'bmpbndle-from-xpm'
Allow creating wxBitmapBundle from XPM and use it in wxRichToolTip.

See #22573.
2022-06-27 01:33:28 +02:00
Vadim Zeitlin
f7c65a7b44 Merge branch 'msw-dpi-resize'
Improve window resizing after DPI change in wxMSW.

See #22565.
2022-06-27 01:32:31 +02:00
Vadim Zeitlin
a70a6fe61d Add "RC1" to wxVERSION_STRING
Indicate that this is a release candidate and not the final 3.2.0 yet.
2022-06-26 23:27:38 +02:00
Vadim Zeitlin
688a45f57e Ensure that we keep the window at the same display when resizing
Use wxRect::Inflate(), which preserves the position of the center of the
rectangle, instead of just changing its size, which could the position
of the center and result in the window snapping back to the previous
display (and, even more catastrophically, then being moved back to the
new one when handling the resulting WM_DPICHANGED and so on forever).
2022-06-26 22:26:18 +02:00
Vadim Zeitlin
e9e22477cc Remove "experimental" warning from wxDisplayChangedEvent docs
There are no known big problems with this event any longer.
2022-06-26 22:18:17 +02:00
Vadim Zeitlin
2fa0bd5b1b Improve documentation of the default wxEVT_DPI_CHANGED handler
Mention that the size may grow unexpectedly.

Co-Authored-By: Maarten Bent <MaartenBent@users.noreply.github.com>
2022-06-26 22:17:15 +02:00
Vadim Zeitlin
0167d56427 Merge branch 'glibc-checks'
Fix build with glibc < 2.12

See #22564.
2022-06-26 22:12:51 +02:00
Vadim Zeitlin
68ed781c8b Merge branch 'ci-freebsd'
Add a FreeBSD CI build.

Thanks Cirrus CI for making FreeBSD VMs available for free to the open
source projects.

See #22563.
2022-06-26 22:11:35 +02:00
Vadim Zeitlin
12be3758e7 Fix drawing wxImageList icons on a scrolled wxDC in wxMSW
We need to account for the origin shift manually here since the changes
of 4f9186f1a1 (Increase usable scrolling range in wxMSW by a factor of
10,000, 2022-04-30).

This notably fixes drawing icons in wxGenericListCtrl, which uses
wxImageList.

Closes #22570.
2022-06-26 22:07:51 +02:00
Vadim Zeitlin
74967df874 Take wxBitmapBundle, not just wxIcon, in wxRichToolTip::SetIcon()
Extend this function to allow passing it multi-resolution bitmaps too.
2022-06-26 21:52:30 +02:00
Vadim Zeitlin
f48a13514f Allow constructing wxBitmapBundle from XPM data for compatibility
Add another compatibility implicit constructor to allow the existing
code, directly passing XPM data to various functions that used to take
wxBitmap or wxIcon and now taking wxBitmapBundle, to work.

Closes #22566.
2022-06-26 20:52:13 +02:00
Jiawei Huang
8ca3933358 Update Simplified Chinese translations for 3.2
Closes #22571.
2022-06-26 00:35:28 +02:00
Vadim Zeitlin
5a4ced1475 Update version to 3.2 in wx_setup.props too
This file was forgotten in 2a2308d5ed (Update version to 3.2.0 and
rebake and rerun autoconf, 2022-06-13).
2022-06-26 00:33:39 +02:00
Besnik Bleta
c274154c00 Translate cursor names to Albanian too 2022-06-25 14:52:51 +02:00
catalinr
c2d471038a Update Romanian translations 2022-06-25 04:09:37 +03:00
Besnik Bleta
044f5533ba Update Albanian translations for 3.2 2022-06-24 14:41:14 +02:00
Vadim Zeitlin
f0ea00cd35 Let application determine TLW size after DPI change
Don't change the window size automatically if the application handled
wxEVT_DPI_CHANGED event to allow it to choose a better size than what is
suggested by MSW itself.

Closes #19152.
2022-06-24 02:49:34 +01:00
Vadim Zeitlin
b66e63e217 Fix windows becoming smaller than best size on DPI change
Update the TLW decoration size as soon as DPI changes to ensure that
GetBestSize() returns correct value: previously it was too small when
moving the window from normal to high DPI, for example, because
GetBestSize() added the smaller, old decoration size to the best
computed client size.

And now that it works correctly, ensure that we never set the window
size to a size smaller than its best size to prevent window elements
from not fitting into the window after the DPI change.

See #18649.
2022-06-24 02:47:58 +01:00
Vadim Zeitlin
7497d14262 Remove the apparently unnecessary check for DPI really changing
We seem to be only getting WM_DPICHANGED if the DPI did really change,
so remove the check for this.

This commit is best viewed ignoring whitespace-only changes.
2022-06-24 00:29:55 +01:00
Vadim Zeitlin
fd68c13be3 Disable wxWebRequest tests in FreeBSD CI due to pip problems
The situation with Python under FreeBSD is pretty weird, with system
Python being 3.7, but pip only available as py38-pip package and,
unsurprisingly, not working with python3.

This could probably be resolved somehow, but for now I just don't have
enough energy to fight with Python again, so simply don't use it.
2022-06-23 23:22:49 +01:00
Vadim Zeitlin
1e98f517b0 Add configuration file for Cirrus CI to test under FreeBSD
Add a single wxGTK3 build only so far.
2022-06-23 23:22:49 +01:00
Vadim Zeitlin
8666131acf Remove inexistent USE_HELP.html from samples/help makefile
This file was removed back in 961a1c2b39 (Remove unused Java class files
without sources from help sample, 2017-10-04) but was left in the bake-
and make-files.

Somehow this didn't create any problems with GNU make, where cp exited
with an error, but make recipe succeeded nevertheless, but it results in
a build error with BSD make.
2022-06-23 22:41:09 +01:00
Vadim Zeitlin
8c5df4b485 Use UTF-8 locale in Unicode formatting test
At least under FreeBSD, vsnprintf() doesn't work with Unicode strings in
non-UTF-8 locales (but just returns EILSEQ), so set such locale before
using it.
2022-06-23 21:15:58 +01:00
Vadim Zeitlin
a9d3ef2539 Fix date/time format unit test under FreeBSD
Expect French date/time formats actually used there (at least under
French 13), as they're different from the ones used by glibc under
Linux.
2022-06-23 21:15:58 +01:00
Vadim Zeitlin
cffbea5a0f Don't replace multiple HOME occurrences
Fix another bug in wxFileName::ReplaceHomeDir(): only replace the first
occurrence of the home directory, not all of them (or even the first one
if it appears in the middle of the string).
2022-06-23 21:15:58 +01:00