[wxWidgets/wxWidgets] 69b8d2: Fix wxMSW build errors when wxUSE_REGKEY=0

0 views
Skip to first unread message

VZ

unread,
Apr 5, 2026, 12:39:40 PM (6 days ago) Apr 5
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: 69b8d2d5137b31e4527b69bb1bf146c396956711
https://github.com/wxWidgets/wxWidgets/commit/69b8d2d5137b31e4527b69bb1bf146c396956711
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M include/wx/msw/combo.h
M src/common/datetime.cpp
M src/msw/joystick.cpp
M src/msw/settings.cpp
M src/msw/uilocale.cpp
M src/msw/utilswin.cpp

Log Message:
-----------
Fix wxMSW build errors when wxUSE_REGKEY=0


Commit: 9377ec794e1610318fc39919723c225f4ed4b04d
https://github.com/wxWidgets/wxWidgets/commit/9377ec794e1610318fc39919723c225f4ed4b04d
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M build/cmake/init.cmake
M configure
M configure.ac

Log Message:
-----------
change wxUSE_CONFIG_NATIVE setting logic in

cmake and configure


Commit: e16c6ce52a174f12f1c9ad9a53f3f18b3be19fae
https://github.com/wxWidgets/wxWidgets/commit/e16c6ce52a174f12f1c9ad9a53f3f18b3be19fae
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M include/wx/msw/chkconf.h

Log Message:
-----------
Add aborts when wxUSE_REGKEY=0


Commit: aabed97b00c438b23369f39566d686717b381790
https://github.com/wxWidgets/wxWidgets/commit/aabed97b00c438b23369f39566d686717b381790
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M samples/regtest/regtest.cpp

Log Message:
-----------
Fix build of sample when wxUSE_REGKEY=0


Commit: b40c110047fcd1022b3f8b6d7ca2e58988f3f7ac
https://github.com/wxWidgets/wxWidgets/commit/b40c110047fcd1022b3f8b6d7ca2e58988f3f7ac
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M samples/exec/exec.cpp
M samples/typetest/typetest.cpp
M samples/typetest/typetest.h

Log Message:
-----------
Add wxUSE_MIMETYPE guard to samples


Commit: 3bd3baaecd4c58fb3bb6108d2acdb7e560189650
https://github.com/wxWidgets/wxWidgets/commit/3bd3baaecd4c58fb3bb6108d2acdb7e560189650
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M include/wx/xlocale.h
M src/propgrid/props.cpp

Log Message:
-----------
Build fixes when wxUSE_INTL=0


Commit: f3af0385e69f1c721041477854f42c62255669c8
https://github.com/wxWidgets/wxWidgets/commit/f3af0385e69f1c721041477854f42c62255669c8
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M samples/calendar/calendar.cpp
M samples/opengl/isosurf/isosurf.cpp

Log Message:
-----------
Fix sample builds for wxUSE_INTL=0


Commit: f2ac6de05ff84ebb513e00145d7b157945ed29b1
https://github.com/wxWidgets/wxWidgets/commit/f2ac6de05ff84ebb513e00145d7b157945ed29b1
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M include/wx/gtk/print.h
M src/gtk/print.cpp

Log Message:
-----------
Remove unused code for wxCAIRO_SCALE==0 in wxGTK

The code for wxCAIRO_SCALE==1 was used since eaeb99858d (Use
cairo_scale() for scaling to full printing resolution[...], 2008-04-30)
and it doesn't seem useful to keep the fallback/original version any
longer.

This simplifies the code, allows to get rid of m_PS2DEV and m_DEV2PS
members of wxGtkPrinterDCImpl (as they are always 1 now) and will
facilitate the upcoming changes.


Commit: 05248eb3b822c48f0809f395455f0ce82969f852
https://github.com/wxWidgets/wxWidgets/commit/05248eb3b822c48f0809f395455f0ce82969f852
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M include/wx/dfb/dc.h
M include/wx/x11/dc.h
M src/dfb/dc.cpp
M src/gtk/dcclient.cpp
M src/gtk/print.cpp
M src/x11/dcclient.cpp

Log Message:
-----------
Remove unnecessary [XY]LOG2DEV and DEV2LOG definitions

Don't confuse things even more by defining macros or functions that do
exactly the same thing as LogicalToDevice[XY] and DeviceToLogical[XY]
member functions of wxDCImpl.

This is just completely unnecessary, simply use the functions themselves
directly instead.

Note that there are still definitions of such macros in wxMSWDCImpl and
wxPostScriptDCImpl code, but they actually do something different and so
can't be just replaced with the function calls.

No real changes.


Commit: 5d28a30c5008362a18459dda758539402f0bde7f
https://github.com/wxWidgets/wxWidgets/commit/5d28a30c5008362a18459dda758539402f0bde7f
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M include/wx/dc.h
M interface/wx/dc.h
M src/common/dcbase.cpp
M tests/graphics/coords.cpp

Log Message:
-----------
Reimplement wxDC X/Y transformations in terms of wxPoint/wxSize

Both DeviceToLogical{X,Y}() and DeviceToLogical() taking wxPoint were
virtual, with the latter implemented in terms of the former by default,
which meant that overriding only that function, but not the ones taking
X/Y coordinates individually, could result in inconsistent behaviour,
which is exactly what happened in wxMSW.

Make it impossible for this to happen by only allowing to override the
functions taking wxPoint (or wxSize for "relative" variant) and
reimplementing the functions working with individual components in terms
of the virtual functions.

The same goes for LogicalToDevice() and "Rel" variants.

As an important side effect, this fixes a bug in wxDC::StretchBlit() in
wxMSW when using RTL layout as the code there used LogicalToDevice{X,Y}
functions that didn't return the correct values before this commit.

Update the tests to not test for the wrong behaviour of per-coordinate
translation functions now that they behave correctly. Also remove the
tests checking that per-coordinate translation doesn't work when the
transformation matrix includes a rotational component.

Update the documentation to emphasize that converting both coordinates
at once is preferred.

See #19344, #26266.


Commit: f736265bb96c58e05c2ea5f0d93315b09b6961bb
https://github.com/wxWidgets/wxWidgets/commit/f736265bb96c58e05c2ea5f0d93315b09b6961bb
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M tests/graphics/coords.cpp

Log Message:
-----------
Generalize Wine workaround to TransformedWithMatrixAndStd() too

Previously this was only needed in TransformedWithMatrixAndStdEx() which
verified that conversion actually worked, but not in the non-Ex version
using individual coordinates as it only verified that the conversions
failed, which they also did under Wine.

But now that they should work (and do, under native Windows), we need
the same workaround there as well.

Also make sure that we output the warning message about the workaround
not being needed any longer only once and only if it's really not needed
(if it's used for some values, we still have to keep it, even if it's
not used for the other ones).


Commit: ce69bc9bbe2b9bb22d993c7314a4f9d96363e5b2
https://github.com/wxWidgets/wxWidgets/commit/ce69bc9bbe2b9bb22d993c7314a4f9d96363e5b2
Author: Florian Larysch <flo...@users.noreply.github.com>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M src/gtk/window.cpp

Log Message:
-----------
Fix crash with wxGLCanvas using EGL inside wxNotebook

EGL implementation of wxGLCanvas requires its GTKHandleRealized() to be
called in order to call wxGLCanvasEGL::OnRealized(), but this didn't
happen when wxGLCanvas was used as a wxNotebook page because such pages
are already realized by the time wxWindow::PostCreation() is called due
to the wxNotebook-specific hack in its AddChildGTK() and PostCreation()
skipped connecting to "realize" signal in this case.

Fix this by always connecting to this signal, as the page can, and will,
be unrealized and then re-realized later and the window must be notified
when this happens.

This commit is best viewed ignoring whitespace-only changes.

Closes #26340.

Co-authored-by: Vadim Zeitlin <va...@wxwidgets.org>


Commit: 14ca383902069414fabd0639110b21ce79547bd5
https://github.com/wxWidgets/wxWidgets/commit/14ca383902069414fabd0639110b21ce79547bd5
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M src/gtk/window.cpp

Log Message:
-----------
Rename "unrealize" to "gtk_window_unrealized_callback"

No real changes, just use the name consistent with that of "realize"
callback.


Commit: 7bb87de27c7ef92e46e276b44f4ffd4dbdfddb83
https://github.com/wxWidgets/wxWidgets/commit/7bb87de27c7ef92e46e276b44f4ffd4dbdfddb83
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M include/wx/gtk/window.h

Log Message:
-----------
Make GTKHandleUnrealize() virtual too

No real changes yet, but this member function should also be virtual if
only for consistency with GTKHandleRealized(): if the latter can be
overridden, it should be also to override the former.


Commit: 322ba2b5ddb4fe139a6d2e5f416f9415ba648ac3
https://github.com/wxWidgets/wxWidgets/commit/322ba2b5ddb4fe139a6d2e5f416f9415ba648ac3
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M include/wx/gtk/window.h
M src/gtk/window.cpp

Log Message:
-----------
Rename GTKHandleUnrealize() to GTKHandleUnrealized()

Make the name consistent with GTKHandleRealized().

This is a private function which should never be called from outside the
library, so it shouldn't be a problem to rename it.


Commit: 8ab925fa020cbbc121042d5653f848d85000824c
https://github.com/wxWidgets/wxWidgets/commit/8ab925fa020cbbc121042d5653f848d85000824c
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M include/wx/gtk/glcanvas.h
M include/wx/unix/glcanvas.h
M include/wx/unix/private/glcanvas.h
M include/wx/unix/private/glegl.h
M include/wx/unix/private/glx11.h
M src/gtk/glcanvas.cpp
M src/unix/glcanvas.cpp
M src/unix/glegl.cpp

Log Message:
-----------
Destroy EGL surface immediately when X11 window is unrealized

This doesn't change much in the typical case when the window is either
realized again immediately afterwards (as it happens with wxNotebook
pages) or destroyed, but it seems tidier to do it just in case it
remains in the unrealized state but still alive for some time.

See #26340.


Commit: b9c3bdd13ed5b6a2e898937ce3b40dc594d8e610
https://github.com/wxWidgets/wxWidgets/commit/b9c3bdd13ed5b6a2e898937ce3b40dc594d8e610
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M samples/typetest/typetest.h

Log Message:
-----------
Initialize member variables in declarations in typetest sample

No real changes, just reduce the number of "#if" checks and make the
code a bit more readable.


Commit: 4dd056e577a2b4364976ae6decb89dcb168996f6
https://github.com/wxWidgets/wxWidgets/commit/4dd056e577a2b4364976ae6decb89dcb168996f6
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M src/propgrid/props.cpp

Log Message:
-----------
Prefer to call wxGetTranslation() on wxString

This is a minor change, but it allows the code to still compile when
wxUSE_INTL=0 without adding an extra unnecessary copy when it is 1.

No real changes.


Commit: 85eeee175787dbcb424a29ee213f9570622ca4d9
https://github.com/wxWidgets/wxWidgets/commit/85eeee175787dbcb424a29ee213f9570622ca4d9
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M build/cmake/init.cmake
M configure
M configure.ac
M include/wx/msw/chkconf.h
M include/wx/msw/combo.h
M include/wx/xlocale.h
M samples/calendar/calendar.cpp
M samples/exec/exec.cpp
M samples/opengl/isosurf/isosurf.cpp
M samples/regtest/regtest.cpp
M samples/typetest/typetest.cpp
M samples/typetest/typetest.h
M src/common/datetime.cpp
M src/msw/joystick.cpp
M src/msw/settings.cpp
M src/msw/uilocale.cpp
M src/msw/utilswin.cpp
M src/propgrid/props.cpp

Log Message:
-----------
Merge branch 'use-0-build-fixes'

Fix build errors when wxUSE_REGKEY, wxUSE_INTL and/or wxUSE_MIMETYPE are
set to 0.

See #26332.


Commit: 3d40c2a0ce8d80c594f211c26181a18d264a8dd1
https://github.com/wxWidgets/wxWidgets/commit/3d40c2a0ce8d80c594f211c26181a18d264a8dd1
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M src/msw/dc.cpp

Log Message:
-----------
Fix wxDC::StretchBlit() for non-0 xsrc in RTL layout

This fixes problems when using this function to paint a scrolled window.

See #26266.


Commit: 3740ec2ed799f0a82c8552ad09a1474ced28d969
https://github.com/wxWidgets/wxWidgets/commit/3740ec2ed799f0a82c8552ad09a1474ced28d969
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M include/wx/dc.h
M include/wx/dfb/dc.h
M include/wx/gtk/print.h
M include/wx/x11/dc.h
M interface/wx/dc.h
M src/common/dcbase.cpp
M src/dfb/dc.cpp
M src/gtk/dcclient.cpp
M src/gtk/print.cpp
M src/x11/dcclient.cpp
M tests/graphics/coords.cpp

Log Message:
-----------
Merge branch 'dc-log-dev'

Ensure that wxDC::DeviceToLogical{X,Y}() and DeviceToLogical() etc are
always consistent.

See #26346.


Commit: 83d3774a10808abfdda84e167ed2a5bfa9b8f64d
https://github.com/wxWidgets/wxWidgets/commit/83d3774a10808abfdda84e167ed2a5bfa9b8f64d
Author: Blake-Madden <66873089+B...@users.noreply.github.com>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M include/wx/dcsvg.h
M interface/wx/dcsvg.h
M src/common/dcsvg.cpp

Log Message:
-----------
Add wxSVGFileDC::Save()

This function allows to check if the SVG file was written successfully.

Closes #26347.


Commit: 7b175b92b351e1b64050ad5edaef1d6e96b4b3d4
https://github.com/wxWidgets/wxWidgets/commit/7b175b92b351e1b64050ad5edaef1d6e96b4b3d4
Author: Blake-Madden <66873089+B...@users.noreply.github.com>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M interface/wx/dcsvg.h

Log Message:
-----------
Update very outdated SVG support description in the documentation

Say "most web browsers" instead of Netscape and don't mention Adobe any
more.

Also use HTTPS in the links.

See #26347.


Commit: 932004d7225c3b31f484d452325d74109856048b
https://github.com/wxWidgets/wxWidgets/commit/932004d7225c3b31f484d452325d74109856048b
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M src/common/filepickercmn.cpp
M src/common/pickerbase.cpp

Log Message:
-----------
Don't impose arbitrary maximum length on picker controls text

This code was there ever since ec376c8fd9 (added
wx{Colour|File|Dir|Font}PickerCtrl (patch 1472329 by Francesco),
2006-05-31), but didn't make any sense because it should be possible to
enter arbitrarily long strings in these controls.

Additionally, the maximum length was increased for wxFilePickerCtrl
after creation which meant that that its initial contents was not shown
in it, but the same string could be shown later, which was even more
confusing.

Just stop imposing any length constraints.

See #7863.

Closes #26314.


Commit: fda62b4c2ad81f5c1b4b782fe2ade14954778522
https://github.com/wxWidgets/wxWidgets/commit/fda62b4c2ad81f5c1b4b782fe2ade14954778522
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-05 (Sun, 05 Apr 2026)

Changed paths:
M include/wx/gtk/glcanvas.h
M include/wx/gtk/window.h
M include/wx/unix/glcanvas.h
M include/wx/unix/private/glcanvas.h
M include/wx/unix/private/glegl.h
M include/wx/unix/private/glx11.h
M src/gtk/glcanvas.cpp
M src/gtk/window.cpp
M src/unix/glcanvas.cpp
M src/unix/glegl.cpp

Log Message:
-----------
Merge branch 'gtk-egl-notebook'

Fix crash when using EGL-based wxGLCanvas in a wxNotebook and some
related cleanup.

See #26352.


Compare: https://github.com/wxWidgets/wxWidgets/compare/719c678abb6e...fda62b4c2ad8

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages