[clutter] Disable deprecation warnings in deprecated classes



commit 0077c5127834b0aa539bd4ae6017cdc5a62b05bf
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri Apr 27 12:38:19 2012 +0100

    Disable deprecation warnings in deprecated classes
    
    We know we're using deprecated symbols.

 clutter/deprecated/clutter-alpha.c         |    2 ++
 clutter/deprecated/clutter-animation.c     |    2 ++
 clutter/deprecated/clutter-animator.c      |    2 ++
 clutter/deprecated/clutter-cairo-texture.c |    2 ++
 clutter/deprecated/clutter-state.c         |    6 ++++--
 5 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/clutter/deprecated/clutter-alpha.c b/clutter/deprecated/clutter-alpha.c
index bd1c715..eda4ab8 100644
--- a/clutter/deprecated/clutter-alpha.c
+++ b/clutter/deprecated/clutter-alpha.c
@@ -115,6 +115,8 @@
 
 #include <gmodule.h>
 
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
+
 #include "clutter-alpha.h"
 #include "clutter-debug.h"
 #include "clutter-enum-types.h"
diff --git a/clutter/deprecated/clutter-animation.c b/clutter/deprecated/clutter-animation.c
index cdf6af2..efea817 100644
--- a/clutter/deprecated/clutter-animation.c
+++ b/clutter/deprecated/clutter-animation.c
@@ -151,6 +151,8 @@
 #include <glib-object.h>
 #include <gobject/gvaluecollector.h>
 
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
+
 #include "clutter-alpha.h"
 #include "clutter-animatable.h"
 #include "clutter-animation.h"
diff --git a/clutter/deprecated/clutter-animator.c b/clutter/deprecated/clutter-animator.c
index 4b512eb..f9afcec 100644
--- a/clutter/deprecated/clutter-animator.c
+++ b/clutter/deprecated/clutter-animator.c
@@ -131,6 +131,8 @@
 
 #include <gobject/gvaluecollector.h>
 
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
+
 #include "clutter-animator.h"
 
 #include "clutter-alpha.h"
diff --git a/clutter/deprecated/clutter-cairo-texture.c b/clutter/deprecated/clutter-cairo-texture.c
index deacf77..9b4a306 100644
--- a/clutter/deprecated/clutter-cairo-texture.c
+++ b/clutter/deprecated/clutter-cairo-texture.c
@@ -73,6 +73,8 @@
 
 #include <cairo-gobject.h>
 
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
+
 #include "clutter-cairo-texture.h"
 
 #include "clutter-actor-private.h"
diff --git a/clutter/deprecated/clutter-state.c b/clutter/deprecated/clutter-state.c
index 46535c5..4f9e39f 100644
--- a/clutter/deprecated/clutter-state.c
+++ b/clutter/deprecated/clutter-state.c
@@ -181,11 +181,13 @@
 #include "config.h"
 #endif
 
-#include "clutter-state.h"
-
 #include <gobject/gvaluecollector.h>
 #include <string.h>
 
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
+
+#include "clutter-state.h"
+
 #include "clutter-alpha.h"
 #include "clutter-animatable.h"
 #include "clutter-animator.h"



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