Commit Graph

73003 Commits

Author SHA1 Message Date
Vadim Zeitlin
3c7596f0ff Switch to using Doxygen 1.9.1 for the documentation generation
This fixes the problem with empty descriptions in the annotated class
list and is a prerequisite for using custom CSS theme in the upcoming
commits.

Closes #22288.
2022-07-02 16:10:21 +02:00
Vadim Zeitlin
f2e7f6a917 Fix wrong XML fragment syntax highlighting in liblzma docs
Turn off syntax highlighting entirely because using ".xml" here results
in total garbage in output for some reason (while not using any specific
language uses C++ highlighting which is confusing).
2022-07-02 16:06:29 +02:00
James Pan
d4f5b00a8c Final zh translations updates for 3.2.0 2022-07-01 02:31:09 +02:00
Vadim Zeitlin
777b4cffe6 Merge branch 'unix-tests'
Minor improvements to non-GUI tests under Unix.

See #22588.
2022-06-30 19:24:41 +02:00
Vadim Zeitlin
ab204afcab Use correct libc.so location under FreeBSD
This allows wxDynamicLibrary to pass there instead of just warning and
skipping the test.
2022-06-30 16:28:29 +02:00
Vadim Zeitlin
6da0cfa2c9 Stop using xclock in wxExecute() unit test
It isn't available under all systems and can't be run without an active
X11 session even when it is, so replace it with a simple call to sleep.
2022-06-30 14:07:08 +02:00
Vadim Zeitlin
20c8844925 Don't try using /usr/lib/libc.so on unknown Unix systems
This doesn't work under FreeBSD, even if the file exists there.

Show the existing libc candidates on such systems to see if any of them
look plausible.
2022-06-30 14:03:44 +02:00
Vadim Zeitlin
587c1fafe0 Remove unused wx/log.h include from wxDynamicLibrary unit test
No real changes.
2022-06-30 14:03:28 +02:00
Vadim Zeitlin
90ef7d0a5a Add changes since 3.2.0 RC1 to the change log 2022-06-30 00:25:13 +02:00
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