From f7ab1fc6cec6d2a429142ec0f684466a653fab24 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 1 Aug 2025 22:42:34 -0400 Subject: wncklet: Remove window preview conditionals There are no distros (that I could find) that ship both an old libwnck<3.32.0 with a new MATE>=1.28. Dropping this should be safe and removes complexity. Since all of these were already wrapped inside HAVE_X11, it should not affect Wayland at all. --- configure.ac | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 23c132cd..ceaa04c2 100644 --- a/configure.ac +++ b/configure.ac @@ -61,8 +61,7 @@ LIBMATE_MENU_REQUIRED=1.21.0 CAIRO_REQUIRED=1.0.0 DCONF_REQUIRED=0.13.4 GTK_REQUIRED=3.24.0 -LIBWNCK_REQUIRED=3.4.6 -LIBWNCK_PREVIEWS_OPTIONAL=3.32.0 +LIBWNCK_REQUIRED=3.32.0 WEATHER_REQUIRED=1.17.0 dnl pkg-config dependency checks @@ -88,16 +87,9 @@ PKG_CHECK_MODULES(NOTIFICATION_AREA, gtk+-3.0 >= $GTK_REQUIRED mate-desktop-2.0 AC_SUBST(NOTIFICATION_AREA_CFLAGS) AC_SUBST(NOTIFICATION_AREA_LIBS) -# Check if we have a version of libwnck that allows for window previews -PKG_CHECK_MODULES(WNCKLET, gtk+-3.0 >= $GTK_REQUIRED libwnck-3.0 >= $LIBWNCK_PREVIEWS_OPTIONAL mate-desktop-2.0 >= $LIBMATE_DESKTOP_REQUIRED, have_window_previews=yes, [ - PKG_CHECK_MODULES(WNCKLET, gtk+-3.0 >= $GTK_REQUIRED libwnck-3.0 >= $LIBWNCK_REQUIRED mate-desktop-2.0 >= $LIBMATE_DESKTOP_REQUIRED, have_window_previews=no) -]) +PKG_CHECK_MODULES(WNCKLET, gtk+-3.0 >= $GTK_REQUIRED libwnck-3.0 >= $LIBWNCK_REQUIRED mate-desktop-2.0 >= $LIBMATE_DESKTOP_REQUIRED) AC_SUBST(WNCKLET_CFLAGS) AC_SUBST(WNCKLET_LIBS) -AM_CONDITIONAL(HAVE_WINDOW_PREVIEWS, [test "x$have_window_previews" = "xyes"]) -if test "x$have_window_previews" = "xyes"; then - AC_DEFINE([HAVE_WINDOW_PREVIEWS], 1, [Defined when using a version of libwnck that provides window-list previews]) -fi AC_CHECK_HEADERS(langinfo.h) AC_CHECK_FUNCS(nl_langinfo) -- cgit v1.2.1