Add some CFLAGS for GTK3 migration
authorJulien Lavergne <julien.lavergne@gmail.com>
Fri, 17 Dec 2010 11:40:16 +0000 (12:40 +0100)
committerJulien Lavergne <julien.lavergne@gmail.com>
Fri, 17 Dec 2010 11:40:16 +0000 (12:40 +0100)
configure.ac

index c7d3dc2..4e6bdce 100644 (file)
@@ -30,6 +30,10 @@ AC_ARG_ENABLE(man,
        [enable_man=no]
 )
 
+#Don't use deprecated GTK and Glib functions 
+DISABLE_DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE"
+AC_SUBST(DISABLE_DEPRECATED_FLAGS)
+
 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.6.0])
 AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)