ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02533
[Merge] lp:~didrocks/indicator-sound/add-deprecation-flag into lp:indicator-sound
Didier Roche has proposed merging lp:~didrocks/indicator-sound/add-deprecation-flag into lp:indicator-sound.
Requested reviews:
Indicator Applet Developers (indicator-applet-developers)
Just add the deprecation flag to ensure further code on distcheck doesn't use deprecated gtk2 function.
--
https://code.launchpad.net/~didrocks/indicator-sound/add-deprecation-flag/+merge/38250
Your team ayatana-commits is subscribed to branch lp:indicator-sound.
=== modified file 'Makefile.am'
--- Makefile.am 2010-06-24 17:16:23 +0000
+++ Makefile.am 2010-10-12 17:07:57 +0000
@@ -7,5 +7,5 @@
EXTRA_DIST = autogen.sh vapi/common-defs.vapi vapi/Indicate-0.2.vapi
-DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
+DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall --enable-deprecations
=== modified file 'configure.ac'
--- configure.ac 2010-10-07 13:35:50 +0000
+++ configure.ac 2010-10-12 17:07:57 +0000
@@ -89,6 +89,18 @@
AC_SUBST(INDICATORDIR)
AC_SUBST(INDICATORICONSDIR)
+##########################
+# Deprecation Switch
+##########################
+
+AC_ARG_ENABLE([deprecations],
+ [AS_HELP_STRING([--enable-deprecations],
+ [allow deprecated API usage @<:@default=yes@:>@])],
+ [],
+ [enable_deprecations=yes])
+AS_IF([test "x$enable_deprecations" = xno],
+ [CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGTK_DISABLE_SINGLE_INCLUDES"])
+
###########################
# DBus Service Info
###########################
Follow ups