Remove wxAcceleratorRefData::m_ok Don't allocate wxAcceleratorRefData at all if we don't have a valid HACCEL for it: this is simpler and less error-prone than having a separate m_ok member and remembering to set it to true only if m_accel is valid (which was forgotten in at least SetHACCEL()). There should be no observable changes.
Fix creating wxAcceleratorTable with 0 entries This was broken in 4cc13e1099 (Use vector in wxMSW wxAcceleratorTable code, 2023-05-15), make it work again now and add a unit test ensuring that it doesn't get broken again. Also document the current behaviour. Closes #25517.
Fix handling of mnemonics in wxNotebook page labels in dark mode Remove the "&" characters used to introduce mnemonics in the labels (and, as a side effect, also correctly render "&&" as a single "&") when drawing the tabs ourselves in dark mode. Closes #25535.
Really prefer normal items to submenus in WM_MENUSELECT handler Although the comment said that we already did this, we didn't, actually. Do this now by continuing to iterate to check if we have an item with the requested ID even after finding a submenu at the position corresponding to the same value. See #25505.
Fix wxNotebook::GetThemeBackgroundColour() in light mode We almost always returned "white" from this function before due to a workaround for Windows Vista (sic!) bug from b380533ca2 (Give the correct colour for notebook pages under Vista with the default theme, if we're using a solid colour background. wxUxThemeEngine::GetThemeColor doesn't return the correct colour for Aero., 2007-05-29), which was wrong when using "high contrast black" mode. Instead of relying on TMT_FILLCOLORHINT, which indeed doesn't seem to have the appropriate value, use DrawThemeBackground() to actually paint the tab background and get the colour from there. Also remove an even earlier hack working around a problem with WindowBlinds from 25057abaac (Can suppress themed notebook page with wxNB_NOPAGETHEME or setting system option msw.notebook.themed-background to 0, 2005-02-06) which is hopefully not relevant any more. Closes #25542.
Add support for HTML 5 charset attribute in wxHtmlParser See #25546.
Accept more alignment flags in wxGrid::DrawTextRectangle() Handle wxALIGN_CENTRE_HORIZONTAL and wxALIGN_CENTER_VERTICAL in addition to wxALIGN_CENTRE in this function, as they could be expected to work, but did not. Also document this behaviour and this function more broadly, notably add another of its overloads which wasn't present in the documentation at all. Closes #25546. Co-authored-by: Vadim Zeitlin <va...@wxwidgets.org>
Simplify code in generic wxAcceleratorTable::Remove() Use a temporary variable to make things a bit simpler. No real changes.
Remove unnecessary statement for wxOSX wxAcceleratorTable ctor This field is already initialized to nullptr in the base class.
Make wxAcceleratorTable with 0 entries invalid in other ports too This is similar to 750b2a47ae (Fix creating wxAcceleratorTable with 0 entries, 2025-06-17) done for wxMSW, but for the implementations of wxAcceleratorTable used in all the other ports.
Make empty wxAcceleratorTable always invalid In addition to the changes from the previous commit, which made it invalid if it was created with 0 entries, also make it invalid if it had some entries before but the last of them was removed. This seems more logical as it maintains the invariant that a non-empty wxAcceleratorTable always has some entries.
Allow setting Wayland app_id via wxApp:SetClassName() See #24668. Co-authored-by: Vadim Zeitlin <va...@wxwidgets.org>
Use wxApp class name as AppUserModelID under Windows This serves similar purpose to Wayland app ID, so reuse the class name for it too. Also document the way the class name is used now.
Always interpret sources used in MSVS projects as UTF-8 Add /utf-8 option to all MSVS projects to ensure that we don't depend on the system encoding for interpreting non-ASCII characters in the sources.
Always use /utf-8 with MSVS when using CMake too This is the same as parent commit, but for CMake builds.
Replace hex and octal escapes with literal UTF-8 characters This makes the code more readable and there should be no reason not to use UTF-8 in string literals any longer. Also replace wxHAVE_U_ESCAPE (all still supported compilers have it) with wxMUST_USE_U_ESCAPE, which is only set for MSVS 2015 currently and will be removed when we drop support for it and can use literal Unicode characters in the wide strings everywhere.
Replace old www.wxwidgets.org IP with 1.1.1.1 in the network test There is no HTTP server running on 173.254.92.22 any more, so use 1.1.1.1 for testing whether Internet is accessible.
Make wxTaskBarJumpList ctor explicit It doesn't make sense to convert strings to this class implicitly.
Use current link to Application User Model IDs documentation Update the link to point to the current page on Microsoft web site.
Improve app ID support documentation Give links to Microsoft and Wayland documentation to allow people to find out more about the app IDs on different platforms and mention that the app ID set in wxApp is used by wxTaskBarJumpList -- and, vice versa, mention in wxTaskBarJumpList documentation that the default app ID value is wxApp::GetClassName().
Link libwebp when using MSVC-specific setup.h Recently added libwebp was not added to the libraries MSVC automatically links with when adding "$(WXWIN)\include\msvc" to the include paths. This should have been part of ad6f05a (Add support for WebP image format, including animations, 2025-05-11).
Mention wxNO_WEBP_LIB in the documentation too Allow to avoid linking with libwebp if this is undesirable for whatever reason.
Merge branch 'msw-empty-acceltable-create' Fix creating empty accelerator table in wxMSW and make such tables always return false from their IsOk() in all ports. See #25538.
Merge branch 'msw-notebook-fixes' Fixes for wxNotebook appearance in wxMSW. See #25545.
Merge branch 'app-id' Use wxApp class name as app ID under Windows and when using Wayland. See #25548.
Merge branch 'msvc-utf8' Interpret source code as being in UTF-8 when using MSVC. See #25549.
Merge branch 'fix-msvc-auto-webp' Add support for auto-linking with libwebp to MSVC-specific setup.h. See #25554.
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help