patch 9.2.0546: configure: GTK4 build requires GTK >= 4.10
Commit:
https://github.com/vim/vim/commit/627e4355ac4de85e05e2bd72509b58c3c03f4b70
Author: Yasuhiro Matsumoto <
matt...@gmail.com>
Date: Thu May 28 18:57:20 2026 +0000
patch 9.2.0546: configure: GTK4 build requires GTK >= 4.10
Problem: configure: GTK4 build requires GTK >= 4.10
Solution: Update configure script and require at least GTK 4.10 version
(Yasuhiro Matsumoto).
The GTK4 GUI uses GtkFontDialog, GtkFileDialog and GtkAlertDialog,
all introduced in GTK 4.10. Without this bump, configure passes on
systems with older GTK4 (e.g. Debian Bookworm ships 4.8) and the
build fails later in gui_gtk4.c with unknown type / implicit
function declaration errors.
fixes: #20340
closes: #20360
Co-Authored-by: Claude <
nor...@anthropic.com>
Signed-off-by: Yasuhiro Matsumoto <
matt...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/auto/configure b/src/auto/configure
index a65e2182f..17813c5db 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -10853,7 +10853,7 @@ printf "%s
" "gtk test disabled" >&6; }
if test "x$PKG_CONFIG" != "xno"; then
- min_gtk_version="4.0.0"
+ min_gtk_version="4.10.0"
if test "$PKG_CONFIG" != "no"; then
case $min_gtk_version in #(
diff --git a/src/
configure.ac b/src/
configure.ac
index 27a8943bd..cf6a59f6c 100644
--- a/src/
configure.ac
+++ b/src/
configure.ac
@@ -2986,7 +2986,7 @@ if test -z "$SKIP_GTK4"; then
fi
if test "x$PKG_CONFIG" != "xno"; then
- AM_PATH_GTK(4.0.0,
+ AM_PATH_GTK(4.10.0,
[GUI_LIB_LOC="$GTK_LIBDIR"
GTK_LIBNAME="$GTK_LIBS"
GUI_INC_LOC="$GTK_CPPFLAGS"])
diff --git a/src/version.c b/src/version.c
index 4c0899871..4382b5fdd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 546,
/**/
545,
/**/