-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 31/01/2021 18:11, Bram Moolenaar wrote: > > James McCoy wrote: > >> On Sun, Jan 31, 2021 at 04:46:51PM +0100, Bram Moolenaar wrote: >>> >>> [...] + Add GUI support (ignore compiler warnings): + % sudo >>> apt install libgtk2.0-dev >> >> This should really be libgtk-3-dev. GTK+2 has been unsupported >> for years and GTK+3 is already going to maintenance mode as work >> transitions to GTK+4. > > Well, the GTK 2 version works well, while GTK 3 still has a few > drawbacks, I believe it's slower.
One drawback of GTK3 is that Vim doesn't support a vertical button layout for dialogs (:set guioptions+=v); I recently discovered and reported that (https://github.com/vim/vim/issues/7746). That's why I switched back to GTK2. Regarding the slowness, I noticed visibly slower screen redraw in GTK2 (e.g. after GVIM becomes the active foreground application again), but only on my Ubuntu 20.04 machine, not on 16.04. > Also, that one package does not appear to be sufficient. If I > remove the libgtk2.0-dev package and install libgtk-3-dev: > > configure:9420: checking for pkg-config configure:9438: found > /usr/bin/pkg-config configure:9450: result: /usr/bin/pkg-config > configure:9477: checking --disable-gtktest argument configure:9487: > result: gtk test enabled configure:9533: checking for GTK -dev > package configure:9611: result: no Instead of explicitly installing the compiler and various dev packages, I have been using $ apt-get build-dep vim-gtk3 - From the apt-get man page: "build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package". So if you want a Vim with similar build options as the distribution's version, this seems to be a really convenient and future-proof alternative command. (You still need "apt install git", as Ubuntu doesn't know how you obtain the source code.) (This is for Ubuntu 20.04, which ships the GTK3 variant by default. On Ubuntu 16.04, it used to be build-dep vim-gnome, for the GTK2 variant.) Interestingly, build-dep installs gcc as the compiler - I don't even have clang installed; always compiled Vim with gcc. > Hmm, pkg-config does list "gtk+-3.0", not sure what is wrong... It > seems configure doesn't check for GTK 3 for some reason. Debugging > shell scripts... - -- regards, ingo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJgFu8OAAoJEA7ziXlAzQ/vBCkH+wczQLafXuuzDsuxsOMcasGx 49AenMfu1XpkDhDz9RTfh3ZzdX8XVYWNa5d4vL2ZgGIMtmC54GsCmAO68+hmutuF IzSy5wva6boqxm3GsJU/B9bPDqHNCjTYDm57+0dlFT6L/RbeKDwgrv0KMuj5ydpX oWzqBZIKP/cPoN/4dpC6eP05ag51FTTb5BurgK71Lj1JL/Piijg/PVHS/8ZxhVM8 NJw6lShM9j5tKRC1opX6Dr/nMGLuUax38Xr6GK9Nh2+2fqQvWHTTeIwiBDl61aDb qwsoDX5gugeWXSY/yVwJP9s23mPE/zQeKylpk83Ra2XtGmMlkuglOkFCZu+SrmI= =JvtC -----END PGP SIGNATURE----- -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/3f5b7e05-5eb2-d61a-b8a4-5655764b311f%40ingo-karkat.de.