[easytag] Use new-style GTK+ deprecation defines



commit ff773bd929b1e293826876aaa9e552d2a45b4d88
Author: David King <amigadave amigadave com>
Date:   Wed Dec 11 08:31:51 2013 +0000

    Use new-style GTK+ deprecation defines
    
    Target GTK+ 3.4, as that is the version of GTK+ 3 that is in Debian
    stable, which a future GTK+ 3-only version of EasyTAG can comfortably
    depend on. Ignore deprecations in versions of GTK+ 3 > 3.4. Keep the
    GTK+ 2 behaviour the same, as no new deprecations should be added.
    
    https://wiki.gnome.org/HowDoI/Deprecations

 configure.ac |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index eccc4de..9f06186 100644
--- a/configure.ac
+++ b/configure.ac
@@ -145,9 +145,11 @@ AS_IF([test "x$have_gtk3" = "xyes" -a "x$have_gtk2" = "xno" -a "x$with_gtk3" !=
 AS_IF([test "x$with_gtk3" = "xyes"],
       [AC_MSG_RESULT([yes])
        AC_MSG_WARN([GTK+ 3 support is currently experimental!])
-       GTK_DEPS="$GTK3_DEPS"],
+       GTK_DEPS="$GTK3_DEPS"
+       GTK_DEPRECATION_FLAGS="-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4 
-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4"],
       [AC_MSG_RESULT([no])
-       GTK_DEPS="$GTK2_DEPS"])
+       GTK_DEPS="$GTK2_DEPS"
+       GTK_DEPRECATION_FLAGS="-DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"])
 PKG_CHECK_MODULES([GTK], [$GTK_DEPS])
 
 
@@ -311,7 +313,7 @@ unset option
 CFLAGS="$realsave_CFLAGS"
 
 AC_SUBST([WARN_CFLAGS], ["$tested_warning_flags"])
-AC_SUBST([DEPRECATED_CPPFLAGS], ["-DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES 
-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE"])
+AC_SUBST([DEPRECATED_CPPFLAGS], ["-DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES 
-DG_DISABLE_DEPRECATED $GTK_DEPRECATION_FLAGS"])
 
 dnl To enable 'gprof' profiling
 dnl CFLAGS="$CFLAGS -pg"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]