[gtk+] Don't use *_DISABLE_DEPRECATED
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use *_DISABLE_DEPRECATED
- Date: Wed, 2 Nov 2011 05:22:37 +0000 (UTC)
commit 9b0011be92c61436c5003332ca3a4ff17ce34717
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 1 22:14:45 2011 -0400
Don't use *_DISABLE_DEPRECATED
Instead of undefining the DISABLE_DEPRECATED guards,
define the GDK_DISABLE_DEPRECATION_WARNING macro where needed.
Also replace INCLUDES by AM_CPPFLAGS to shut up automake.
tests/Makefile.am | 7 ++++---
tests/testfontselection.c | 1 -
tests/testfontselectiondialog.c | 2 +-
tests/testmerge.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8b8494d..cc3b84b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -3,12 +3,10 @@ include $(top_srcdir)/Makefile.decl
SUBDIRS = css reftests a11y
-INCLUDES = \
+AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
-I$(top_srcdir)/gdk \
- -DGDK_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED \
$(GTK_DEBUG_FLAGS) \
$(GTK_DEP_CFLAGS) \
$(GDK_DEP_CFLAGS)
@@ -129,6 +127,9 @@ noinst_PROGRAMS += testerrors
endif
if HAVE_CXX
+
+AM_CXXFLAGS = $(AM_CPPFLAGS)
+
noinst_PROGRAMS += autotestkeywords
TESTS = autotestkeywords
diff --git a/tests/testfontselection.c b/tests/testfontselection.c
index a08e234..c02eacc 100644
--- a/tests/testfontselection.c
+++ b/tests/testfontselection.c
@@ -19,7 +19,6 @@
#include "config.h"
-#undef GTK_DISABLE_DEPRECATED
#define GDK_DISABLE_DEPRECATION_WARNINGS
#include <gtk/gtk.h>
diff --git a/tests/testfontselectiondialog.c b/tests/testfontselectiondialog.c
index 96f8652..9429c54 100644
--- a/tests/testfontselectiondialog.c
+++ b/tests/testfontselectiondialog.c
@@ -19,7 +19,7 @@
#include "config.h"
-#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS
#include <gtk/gtk.h>
diff --git a/tests/testmerge.c b/tests/testmerge.c
index 0c14583..d6e1e56 100644
--- a/tests/testmerge.c
+++ b/tests/testmerge.c
@@ -25,7 +25,7 @@
#include <unistd.h>
#endif
-#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS
#include <gtk/gtk.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]