[network-manager-applet] Use GLIB_VERSION_MIN_REQUIRED to work around GValueArray deprecation



commit 4d073d91cda8d0538625f0989eb5288540f76373
Author: Dan Winship <danw gnome org>
Date:   Thu May 17 09:27:09 2012 -0400

    Use GLIB_VERSION_MIN_REQUIRED to work around GValueArray deprecation
    
    GValueArray is deprecated as of GLib 2.32, but we need to use it for
    dbus-glib stuff. So use the new GLIB_VERSION_MIN_REQUIRED macro to
    prevent those warnings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=669613

 configure.ac |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8ac46b7..1cce372 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,6 +104,12 @@ PKG_CHECK_MODULES(NMA,
 		 libnm-glib-vpn >= 0.9.4
 		 gmodule-export-2.0])
 
+# With recent glib, defining GLIB_VERSION_MIN_REQUIRED avoids
+# deprecation warnings for recently-deprecated functions (eg,
+# GValueArray stuff). We say GLIB_VERSION_2_26 because there
+# aren't macros for any older versions.
+NMA_CFLAGS="$NMA_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26"
+
 PKG_CHECK_MODULES(GCONF, [gconf-2.0])
 AC_SUBST(GCONF_CFLAGS)
 AC_SUBST(GCONF_LIBS)



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