This was broken by 0f6c54cdb6 (Define __WXFUNCTION__ as __func__ and
don't use it any more, 2022-11-11) which mistakenly removed the
inclusion of wx/cpp.h from here under the belief that it was only needed
for __WXFUNCTION__, as its comment indicated.
But this isn't really the case, so restore the removed #include and just
update its comment.
Using wxClientDC can actually be worse than useless with wxGTK3 as not
only it does nothing when used under Wayland, but it may also draw at
the wrong position when using X11 with some WMs, notably Openbox or
fvwm.
Simply don't use at all with wxGTK3, it should be never needed there, to
fix the painting artifacts that it created.
Closes#23135.
When recreating a wxComboBox, as sometimes needs to be done when adding
a new bitmap to wxBitmapComboBox, for example, we should only disable it
if the old combobox itself was disabled, not if (any of) its parent(s)
were disabled, but IsEnabled() returned true even in this case.
Use IsThisEnabled() instead to ensure that we only disable the new
combobox if necessary.
Closes#23132.
Get rid of the ugly non-hygienic macros and use a template function
instead.
The code is still not as simple as it would ideally be because we need
to use lambdas in a couple of places instead of passing the conversion
function directly and then to explicitly specify the template argument
because it can't be deduced from lambda, but is more clear and easier to
debug.
No real changes.
OpenGL window can't be used inside a composited window as its contents
is never drawn at all with some video cards/drivers in this case (at
least nVidia ones).
Closes#23112.
Such functions modifying errno is undocumented, and may come
as a surprise to the caller. Consequently also a call to
wxString::Format() would modify errno.
This code, added back in 1c4293cb91 (added wxPropertyGrid from Jaakko
Salli (#9934), 2008-09-12), resulted in warnings about an unused
variable from clang and was generally confusing, so just remove this
code entirely as it's not clear what was actually the intention here.
This file is included from image.cpp and is not supposed to be compiled
itself, this is just a waste of time and results in a (clang) warning
about unused variable defined in this file.
This uses the macro suppressing the warning for both gcc and clang
instead of doing it just for gcc as 58840fe7fd (Suppress unavoidable
-Wsuggest-override in wxCompositeWindow, 2022-12-25) did.
This is more correct and also simpler and shorter.
Provide more information about application manifest, High DPI support,
and contents of wx/msw/wx.rc file.
Use the correct file extension for docs/msw/winxp.md.
Closes#23116.
Drop disabled by default and pretty useless memory tracing code and all
the overlapping and poorly documented build options related to it.
Remove memory.cpp entirely and update all the make/project files, but
preserve the now completely trivial wx/memory.h for compatibility and
also keep including wx/string.h from wx/object.h as it seems like a lot
of existing code actually depends on this, even if it should not.
Replace the options in the propgrid sample with a couple of other
debug-related options that were not used before to avoid leaving the
"Debugging Section" completely empty.
Removed the existing file and reran "bakefile_gen -B" to recreate it
with all the still valid references but without references to the
bakefiles not existing any more, including the just removed memcheck.bkl
but also a couple of other previously removed samples and utils.
No real changes.
With delay after refreshing testing window added in 808bbe8341 ("Fix
executing wxPaintDC-related tests under wxGTK", 2023-01-04) wxPaintDC
tests work also under wxOSX.
This was accidentally broken by b4dd25ee3f (Disable use of composition
for top most windows, 2022-12-25).
See #23079.
Co-Authored-By: Maarten Bent <MaartenBent@users.noreply.github.com>
Previously this was done in the GitHub CI script, but this isn't
specific to GitHub, so do it in the common script to make these locales
also available under Cirrus CI.
Also switch to just installing locales-all instead of installing locales
and then running locale-gen because this is simpler and actually works
(locale-gen would have only worked if we modified /etc/locale.gen before
running it, but we didn't).