GTK-2-on-3 wrapper
GTK-2-on-3 wrapper
Posted Jan 17, 2026 8:33 UTC (Sat) by gioele (subscriber, #61675)In reply to: Maybe a hint? by wtarreau
Parent article: Debian discusses removing GTK 2 for forky
That's kind of hard to do because GKT 2 and GTK 3 are paradigmatically different. It is not just a matter of updating a couple of functions from a deprecated API to a new one. For example the base "class" GtkObject is gone and pretty much all APIs related to custom widgets or surface drawing have been removed and replaced by Cairo.
And even if a GTK 2 to GTK 3 wrapper were possible, a GTK 3 to GTK 4 is categorically impossible (or possible only in very limited cases) because the API for the main event loop has changed. (And all the styling is fundamentally different, so an application would look seriously broken with widgets all over the place.)
A GTK 2-to-3 wrapper only would buy us a few years before GTK 3 is fully abandoned upstream and we are back to the same discussion.
