Re: Status and plans for GTK 4 support?

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Mon, 07 Nov 2022 20:59:35 +0100 Matthias Brennwald wrote:

MB> I am a newbie to this email group,

 Hi Matthias and welcome!

MB> I am wondering what the status and plans for GTK 4 support is.

 We definitely hope to support GTK 4 one day, but we don't have any
concrete plan/schedule for doing it yet.

MB> As GTK 4 is the future for the Linux/GNOME desktop, it would be great
MB> to see wxWidgets support for GTK 4, or at least some sort of a
MB> commitment to implement GTK 4 in the future.

 I can only agree with this.

MB> - What is the current status of support for GTK 4 in wxWidgets?

 Some experimental code which is far from being complete.

MB> - What are the plans for GTK 4 in wxWidgets?

 The problem with GTK 4 is that it's impossible, by design (of GTK), to
implement some parts of wx API using it. At the very least, using
wx{Client,Screen,Window}DC is out of the question, as all drawing must be
done only from wxEVT_PAINT handler with GTK 4. And there is also no support
for local modal loops, so wxDialog::ShowModal() can't be implemented.

 As any non-trivial wx application uses ShowModal(), we need to provide
some migration path for the existing code, but I don't know how to do it
yet.

MB> - What can I do to help getting GTK 4 into wxWidgets? (I am not fluent 
MB> in C/C++, so I can't help writing code.)

 Coming up with API that

1. Is as simple as possible to migrate the existing code to.
2. Can actually be implemented with GTK 4.

would be a great first step. Unfortunately I won't have time to do it in
the near future (certainly not before the end of this year).

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEABECAAYFAmNqXmYACgkQBupB3k9sHoY2ugCgjIOJ7y/L1UE41E0BgU+E1n2B
qfsAn0cjpnQpJPKEBZm6YXxPw9R30Fnh
=8/3s
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.