Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Miguel Gimenez on April 04, 2022, 11:56:18 am

Title: wxWidgets 3.1.6 has been released
Post by: Miguel Gimenez on April 04, 2022, 11:56:18 am
wxWidgets 3.1.6 has just been released (https://github.com/wxWidgets/wxWidgets/releases/tag/v3.1.6).

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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: ollydbg on April 05, 2022, 01:40:21 am
Good news.

It looks like Update checksums for 3.1.6 release files again (https://github.com/wxWidgets/wxWidgets/commit/e67b25ff699f826650b294c9c0e85ed45799aa6e)

This maybe a fix (Use window scale factor for all MSW wxDCs associated with windows (https://github.com/wxWidgets/wxWidgets/commit/e4c2298e5e1e846b1ac61176cceb9c17010fbd6f)) after the initial 3.1.6 release.
Title: Re: wxWidgets 3.1.6 has been released
Post by: AndrewCot 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: gd_on 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 ...
Title: Re: wxWidgets 3.1.6 has been released
Post by: Miguel Gimenez on April 05, 2022, 06:22:29 pm
It is official now (https://www.wxwidgets.org/) (you may need to refresh the page). The zipped source is from rc2.
Title: Re: wxWidgets 3.1.6 has been released
Post by: jordi 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

Title: Re: wxWidgets 3.1.6 has been released
Post by: gd_on 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
Title: Re: wxWidgets 3.1.6 has been released
Post by: Miguel Gimenez on April 06, 2022, 07:56:26 pm
There is a new wxUILocale class, may be related to it.
Title: Re: wxWidgets 3.1.6 has been released
Post by: stahta01 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: ollydbg 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: stahta01 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: Miguel Gimenez 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: gd_on 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
Title: Re: wxWidgets 3.1.6 has been released
Post by: Miguel Gimenez on April 07, 2022, 11:47:00 am
I do not have a launchpad account.
Title: Re: wxWidgets 3.1.6 has been released
Post by: gd_on on April 07, 2022, 11:51:17 am
as far as I know, it's not necessary to just download files.
Title: Re: wxWidgets 3.1.6 has been released
Post by: AndrewCot 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: gd_on 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: gd_on 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
Title: Re: wxWidgets 3.1.6 has been released
Post by: Miguel Gimenez 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.
Title: Re: wxWidgets 3.1.6 has been released
Post by: gd_on on April 07, 2022, 09:23:52 pm
It's OK. Many thanks. It's a pleasure to work with you  ;)

gd_on
Title: Re: wxWidgets 3.1.6 has been released
Post by: Miguel Gimenez on April 08, 2022, 10:12:30 am
Thank you for reporting and testing  :)