Author Topic: wxWidgets 3.1.6 has been released  (Read 8181 times)

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
wxWidgets 3.1.6 has been released
« on: April 04, 2022, 11:56:18 am »
wxWidgets 3.1.6 has just been released.

First compilation of C::B works flawlessly at the moment. The new wxBitmapBundle class will ease HiDPI support replacing many bitmaps with one SVG image.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxWidgets 3.1.6 has been released
« Reply #1 on: April 05, 2022, 01:40:21 am »
Good news.

It looks like Update checksums for 3.1.6 release files again

This maybe a fix (Use window scale factor for all MSW wxDCs associated with windows) after the initial 3.1.6 release.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: wxWidgets 3.1.6 has been released
« Reply #2 on: April 05, 2022, 05:15:49 am »
Thanks. I have updated my local C::B build to wxWidgets 3.1.6 and C::B is running.

For other devs, remember to change the wxUSE_GRAPHICS_DIRECT2D define to 1.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: wxWidgets 3.1.6 has been released
« Reply #3 on: April 05, 2022, 03:03:07 pm »
Apparently, wxWidgets 3.1.6 is still a release candidate (presently _rc2). But official version will be certainly proposed in a few hours ...
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidgets 3.1.6 has been released
« Reply #4 on: April 05, 2022, 06:22:29 pm »
It is official now (you may need to refresh the page). The zipped source is from rc2.

Offline jordi

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: wxWidgets 3.1.6 has been released
« Reply #5 on: April 05, 2022, 09:43:45 pm »
All right in Debian distribution

jordi@debian:~/source/codeblocks-code$ lsb_release -a
No LSB modules are available.
Distributor ID:   Debian
Description:   Debian GNU/Linux 11 (bullseye)
Release:   11
Codename:   bullseye
jordi@debian:~/source/codeblocks-code$ uname -a
Linux debian 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux


make clean
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
./bootstrap
./configure --prefix=/home/jordi/build/ --with-wx-config=/usr/local/bin/wx-config
make all -j 10


Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: wxWidgets 3.1.6 has been released
« Reply #6 on: April 06, 2022, 07:47:25 pm »
I compiled and linked C::B (svn 12779 and 12780) with wxWidgets 3.1.6.
Normally, the interface should appear in French for me, but it's still in English. The same svn versions compiled and linked with wxWidgets 3.1.5 have the correct behaviour (appear in French with my configuration). C::B, with wxWidgets 3.1.6 seems to work as it should, but the interface stays in English, despite the fact that in Settings/View the French language is proposed and set for me.
In wxWidgets, I tried the internat sample : it seems to work as it should.
Is it a wxWidgets problem, a C::B one ?
Does anybody has such a problem ?

gd_on
« Last Edit: April 06, 2022, 09:21:48 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidgets 3.1.6 has been released
« Reply #7 on: April 06, 2022, 07:56:26 pm »
There is a new wxUILocale class, may be related to it.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidgets 3.1.6 has been released
« Reply #8 on: April 07, 2022, 04:14:44 am »
wxPython fails to build with wxWidgets 3.1.6; they removed a class name whose function was duplicated by another class.

Add more info
https://github.com/wxWidgets/wxWidgets/pull/2445
Replace DoGetBorderSize() with GetWindowBorderSize()

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxWidgets 3.1.6 has been released
« Reply #9 on: April 07, 2022, 04:36:50 am »
wxPython fails to build with wxWidgets 3.1.6; they removed a class name whose function was duplicated by another class.

Add more info
https://github.com/wxWidgets/wxWidgets/pull/2445
Replace DoGetBorderSize() with GetWindowBorderSize()

Tim S.

Hi, Tim, do you mean this will effect the native C++ wx library 3.1.6? Since we don't use wxPython in our C::B code base.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidgets 3.1.6 has been released
« Reply #10 on: April 07, 2022, 04:57:05 am »
wxPython fails to build with wxWidgets 3.1.6; they removed a class name whose function was duplicated by another class.

Add more info
https://github.com/wxWidgets/wxWidgets/pull/2445
Replace DoGetBorderSize() with GetWindowBorderSize()

Tim S.

Hi, Tim, do you mean this will effect the native C++ wx library 3.1.6? Since we don't use wxPython in our C::B code base.

No, I have no idea if it effects C::B; it would be a build time error if it does.

But, wxWidgets 3.1.6 seems to be more breaking changes.

Edit: It is likely to only effect run-time problems on the old Python plugin; and, maybe not even in it.

Tim S.
« Last Edit: April 07, 2022, 04:58:55 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidgets 3.1.6 has been released
« Reply #11 on: April 07, 2022, 10:36:00 am »
@gd_on, can you test again using the attached file? It is a renamed cpp.

If it does not work, please post the .mo (and installation instructions) so I can test locally.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: wxWidgets 3.1.6 has been released
« Reply #12 on: April 07, 2022, 11:41:55 am »
I am testing this. I will give you the result this afternoon.
Nevertheless, the whole history for translating C::B is on the forum : https://forums.codeblocks.org/index.php/topic,1022.0.html . Installation instruction can also be found.
Last .mo files can be found on launchpad in : https://translations.launchpad.net/codeblocks-gd in the translation tab.
A spanish partial translation exist.
You simply put the choosen .mo file in C:\Program Files\CodeBlocks\share\CodeBlocks\locale\fr_FR for me but may be a es_ES sub folder for spanish. Then in Settings/Environment/View you choose the language and restart C::B to activate the translation.

gd_on
« Last Edit: April 07, 2022, 02:27:29 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidgets 3.1.6 has been released
« Reply #13 on: April 07, 2022, 11:47:00 am »
I do not have a launchpad account.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: wxWidgets 3.1.6 has been released
« Reply #14 on: April 07, 2022, 11:51:17 am »
as far as I know, it's not necessary to just download files.
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: wxWidgets 3.1.6 has been released
« Reply #15 on: April 07, 2022, 12:14:17 pm »
It eventually asks for an account on the following page:
   https://login.launchpad.net/Zh5yIPT4v06B3wmv/+decide

I got to the login by following the french link.... and I eventually get to the following page:   https://translations.launchpad.net/codeblocks-gd/trunk/+pots/all-codeblocks/fr/+details
Then if I click on the "Download translation" hyperlink in the Related pages area I get redirected to the login page.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: wxWidgets 3.1.6 has been released
« Reply #16 on: April 07, 2022, 01:21:49 pm »
Apparently, it's not sufficient, my C::B interface is still in English with wxWidgets 3.1.6
My .mo file (7zipped).

gd_on

PS : sorry, you need to have an account on launchpad.
« Last Edit: April 07, 2022, 01:26:50 pm by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: wxWidgets 3.1.6 has been released
« Reply #17 on: April 07, 2022, 03:12:44 pm »
Complementary information : the sample internat.cpp delivered with wxWidgets 3.1.5 works as it should if it is compiled and linked with wxWidgets 3.1.6

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidgets 3.1.6 has been released
« Reply #18 on: April 07, 2022, 07:32:00 pm »
Translation fixed in r12783, AddCatalog() domains are not supposed to have extension but wxWidgets < 3.1.6 was more tolerant.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: wxWidgets 3.1.6 has been released
« Reply #19 on: April 07, 2022, 09:23:52 pm »
It's OK. Many thanks. It's a pleasure to work with you  ;)

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidgets 3.1.6 has been released
« Reply #20 on: April 08, 2022, 10:12:30 am »
Thank you for reporting and testing  :)