Other/future projects • GTK2 revival
Hey guys! I'm probably not the only one who hates forced deprecation. Be it with python2, gtk2 or XUL. For python2 and XUL there's still development going on (tauthon and of UXP), but not for gtk2. So I just decided that I'm going to do it, even if I'm not really a good or experienced coder.
repo: https://git.devuan.org/Daemonratte/gtk2-ng
I still managed to get rid of all the compilation errors when compiling with gcc14 and clang 21 (didn't test never versions yet) and I applied these three patches: https://gist.github.com/Dudemanguy/d70734d5bdf82e79cbfb22894fac8a1b https://aur.archlinux.org/cgit/aur.git/tree/0001-Lower-severity-of-XID-collision-warnings.patch?h=gtk2 https://aur.archlinux.org/cgit/aur.git/tree/0002-Stop-looking-for-modules-in-cwd.patch?h=gtk2
I also backported some fixes from Ardour's ytk (their gtk2 fork) and stefan11111's gtk2 fork
Current status:
Making it Y2K38-safe
Getting rid of all deprecation warnings
Patching it for NetBSD and backporting NetBSD-specific patches
Testing it on all kinds of hardware
Further modernisation without breaking ABI
Future plans:
Implement tough support and smooth scrolling from Ardour's ytk without breaking ABI, so Ardour can be compiled against gtk2 again
Heavily lobby for it's adoption in the BSD and systemdfree Linux world
Reimplement GtkMozEmbed for UXP, so this wonderful engine can be used in gtk2 projects
Here's how you can build it: Instructions for installing it on the system
CODE:
touch READMEautoreconf -fvi./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-xinput=yesmake -j"$(nproc)"sudo make install
if you only want to test it, only use
CODE:
./configure --prefix=/TESTDIR --with-xinput=yesmake -j"$(nproc)"make install
and change TESTDIR to another location
Then just test an application with (in this case leafpad)
CODE:
env \LD_LIBRARY_PATH=/TESTDIR/lib \GTK_PATH=/TESTDIR/lib/gtk-2.0 \GTK_EXE_PREFIX=/TESTDIR \/usr/bin/leafpad
Please try and report any bugs to me
Discussion in the ATmosphere