[cluttermm] Deprecate CairoTexture.



commit 3731787cfeab6a2dab8a8f07485cd9e7f18e9225
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 24 10:15:31 2014 +0100

    Deprecate CairoTexture.
    
    Though we have not added Canvas yet, which replaces it.

 clutter/src/cairo-texture.hg |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/clutter/src/cairo-texture.hg b/clutter/src/cairo-texture.hg
index c1f61af..3e04937 100644
--- a/clutter/src/cairo-texture.hg
+++ b/clutter/src/cairo-texture.hg
@@ -23,17 +23,25 @@
 _DEFS(cluttermm,clutter)
 _PINCLUDE(cluttermm/private/texture_p.h)
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
+
 namespace Clutter
 {
 
 namespace Cairo
 {
 
+/**
+ * @deprecated Use Canvas instead.
+ */
 class Texture : public ::Clutter::Texture
 {
   _GMMPROC_EXTRA_NAMESPACE(Cairo)
   _CLASS_GOBJECT(Texture, ClutterCairoTexture, CLUTTER_CAIRO_TEXTURE, ::Clutter::Texture, ClutterTexture)
   _IMPLEMENTS_INTERFACE(Scriptable)
+  _IS_DEPRECATED
 
 protected:
   _WRAP_CTOR(Texture(guint surface_width, guint surface_height), clutter_cairo_texture_new)


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