mirror of https://github.com/GNOME/gimp.git
configure: disable vector icons on Windows with GTK+ < 2.24.32.
SVG icons won't be properly displayed with an older GTK+. See: https://bugzilla.gnome.org/show_bug.cgi?id=781020 Note: 2.24.32 is not out yet, but it will be the first stable release with the right fix.
This commit is contained in:
parent
10f12bdcbd
commit
8c10194614
15
configure.ac
15
configure.ac
|
@ -729,9 +729,11 @@ else
|
|||
fi
|
||||
AC_MSG_RESULT($have_gtk_2_26)
|
||||
|
||||
# Windows platform have broken shortcuts on non-latin locales.
|
||||
# Display a warning when compiling with gtk+ < 2.24.32.
|
||||
# See bug 769550.
|
||||
# Windows platform have a few bugs with GTK+ < 2.24.32.
|
||||
# In particular: broken shortcuts on non-latin locales.
|
||||
# Also SVG icons will be broken, hence --enable-vector-icons cannot be used.
|
||||
# Display a warning when necessary.
|
||||
# See bugs 769550 and 781020.
|
||||
have_recommended_gtk=""
|
||||
if test "x$platform_win32" = "xyes"; then
|
||||
PKG_CHECK_MODULES(RECOMMENDED_WIN32_GTK, gtk+2.0 >= gtk_win32_recommended_version,
|
||||
|
@ -741,7 +743,8 @@ if test "x$platform_win32" = "xyes"; then
|
|||
have_recommended_gtk="
|
||||
WARNING: Your GTK+ version is `$PKG_CONFIG --modversion gtk+-2.0`.
|
||||
The recommended GTK+ version under Windows is $GTK_WIN32_RECOMMENDED_VERSION or over.
|
||||
If you continue without updating GTK+, shortcuts won't work with non-latin locales."
|
||||
If you continue without updating GTK+, shortcuts won't work with
|
||||
non-latin locales, and vector icons will be disabled."
|
||||
else
|
||||
have_recommended_gtk=""
|
||||
fi
|
||||
|
@ -2099,6 +2102,9 @@ AC_ARG_ENABLE(vector-icons, [ --disable-vector-icons use raster icons rather t
|
|||
enable_vector_icons=auto)
|
||||
|
||||
if test "x$enable_vector_icons" != "xno"; then
|
||||
if test "x$have_recommended_gtk" != "x"; then
|
||||
enable_vector_icons="no (gtk+-2-0 < gtk_win32_recommended_version)"
|
||||
else
|
||||
# Check if librsvg was built with --disable-pixbuf-loader.
|
||||
gdk_pixbuf_moduledir=`$PKG_CONFIG --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0`
|
||||
# AC_CHECK_FILE macro does not work when cross-compiling and exits with:
|
||||
|
@ -2120,6 +2126,7 @@ if test "x$enable_vector_icons" != "xno"; then
|
|||
else
|
||||
enable_vector_icons="no (librsvg GdkPixbuf loader missing)"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST(NATIVE_GLIB_LIBS)
|
||||
|
|
Loading…
Reference in New Issue