summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@gimp.org>2010-10-22 17:09:48 +0200
committerMichael Natterer <mitch@gimp.org>2010-10-22 17:10:49 +0200
commit1f77384ab349f078d386ad43ba9b5e3332aa3758 (patch)
treef92c765afcbedf2e1afbf56f835d818ca366471a /gtk/gtkviewport.c
parent3dc1f097728260a653ef458ab5a639330686e6da (diff)
downloadgtk+-1f77384ab349f078d386ad43ba9b5e3332aa3758.tar.gz
gtk: undef DISABLE_DEPRECATED around including our own header
so we can see our own deprecated API and don't get warnings.
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 1362df7c01..f91f2efd8d 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -25,11 +25,13 @@
*/
#include "config.h"
-#include "gtkviewport.h"
#include "gtkintl.h"
#include "gtkmarshalers.h"
#include "gtktypeutils.h"
#include "gtkscrollable.h"
+#undef GTK_DISABLE_DEPRECATED
+#include "gtkviewport.h"
+#define GTK_DISABLE_DEPRECATED
#include "gtkprivate.h"