[gtk+] gtk: undef DISABLE_DEPRECATED around including our own header



commit 1f77384ab349f078d386ad43ba9b5e3332aa3758
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 22 17:09:48 2010 +0200

    gtk: undef DISABLE_DEPRECATED around including our own header
    
    so we can see our own deprecated API and don't get warnings.

 gtk/gtkviewport.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 1362df7..f91f2ef 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"
 
 



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