[...]
Gtk no longer supports it themselves.
And that is the reason most distro's have dropped it or will drop it:
It is abandonware.
[...]
abandonware... or bug-free and feature complete? i can think of many examples of software that has remained static for many years simply because it is totally functional and usable, without need for any further 'tinkering'.
could GTK2 not be one such piece of software - that works adequately, interfaces with X11 without any significant issue, and would not benefit from further development work? as for the need to interface with Wayland, from where i sit Wayland seems to be still at the 'experimental' stage, has numerous incompatibilities, and well short of being 'production ready'. when will Wayland be production ready - who knows? it could be another decade.
"
most distro's have dropped it or will drop it": this is a tricky assertion, that would be true even if only ONE distro had 'dropped' GTK2 and at the same time it was certain that at an indeterminate future time GTK2 would be surpassed (or functionally incorporated) within GTK3/4/etc.
your statement is a bit like those advertisements we so often see reading:
"
Buy Now. Up To 90% Off In-Store Today"
wow, a 90% discount, surely that is an absolute bargain?! but wait a minute, the statement could still hold true even if the store had just a single item (such as an empty paper bag) with 90% off
and NO other items with more than 90% off. a rewriting of the statement is "nothing in store will be discounted by MORE than 90%" - a far less attractive proposition to lure the customer in.
likewise, your assertion that "most distro's have dropped it [GTK2] or will drop it" is equivalent to saying "eventually GTK2 will be replaced by something else, although that happening may be years (or even decades) away".
in a sane world, i could see a 'selector' helper being devised, that hooks up a GUI application at run-time with either of GTK2, GTK3/4/etc, or Qt5/6/etc, the choice being dependent on what interface the GUI application tries to access.
cheers,
rob :-)