diff --git a/clutter/Makefile.am b/clutter/Makefile.am index dc19b19a7..a15dc1739 100644 --- a/clutter/Makefile.am +++ b/clutter/Makefile.am @@ -243,6 +243,7 @@ deprecated_h = \ $(srcdir)/deprecated/clutter-behaviour-rotate.h \ $(srcdir)/deprecated/clutter-behaviour-scale.h \ $(srcdir)/deprecated/clutter-box.h \ + $(srcdir)/deprecated/clutter-cairo-texture.h \ $(srcdir)/deprecated/clutter-container.h \ $(srcdir)/deprecated/clutter-fixed.h \ $(srcdir)/deprecated/clutter-frame-source.h \ diff --git a/clutter/clutter-cairo-texture.h b/clutter/clutter-cairo-texture.h index 6b94506dc..c26b74177 100644 --- a/clutter/clutter-cairo-texture.h +++ b/clutter/clutter-cairo-texture.h @@ -115,16 +115,6 @@ GType clutter_cairo_texture_get_type (void) G_GNUC_CONST; ClutterActor * clutter_cairo_texture_new (guint width, guint height); -CLUTTER_DEPRECATED_FOR(clutter_cairo_texture_invalidate_rectangle) -cairo_t * clutter_cairo_texture_create_region (ClutterCairoTexture *self, - gint x_offset, - gint y_offset, - gint width, - gint height); - -CLUTTER_DEPRECATED_FOR(clutter_cairo_texture_invalidate) -cairo_t * clutter_cairo_texture_create (ClutterCairoTexture *self); - void clutter_cairo_texture_set_surface_size (ClutterCairoTexture *self, guint width, guint height); diff --git a/clutter/clutter-deprecated.h b/clutter/clutter-deprecated.h index 3cc65c433..8f6a1e0bd 100644 --- a/clutter/clutter-deprecated.h +++ b/clutter/clutter-deprecated.h @@ -15,6 +15,7 @@ #include "deprecated/clutter-behaviour-rotate.h" #include "deprecated/clutter-behaviour-scale.h" #include "deprecated/clutter-box.h" +#include "deprecated/clutter-cairo-texture.h" #include "deprecated/clutter-container.h" #include "deprecated/clutter-fixed.h" #include "deprecated/clutter-frame-source.h" diff --git a/clutter/deprecated/clutter-cairo-texture.h b/clutter/deprecated/clutter-cairo-texture.h new file mode 100644 index 000000000..46c0f2054 --- /dev/null +++ b/clutter/deprecated/clutter-cairo-texture.h @@ -0,0 +1,51 @@ +/* + * Clutter + * + * An OpenGL based 'interactive canvas' library. + * + * Authored By: Emmanuele Bassi + * Matthew Allum + * Chris Lord + * Iain Holmes + * Neil Roberts + * + * Copyright (C) 2008, 2009, 2010 Intel Corporation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __CLUTTER_CAIRO_TEXTURE_DEPRECATED_H__ +#define __CLUTTER_CAIRO_TEXTURE_DEPRECATED_H__ + +#include + +G_BEGIN_DECLS + +CLUTTER_DEPRECATED_IN_1_8_FOR(clutter_cairo_texture_invalidate_rectangle) +cairo_t * clutter_cairo_texture_create_region (ClutterCairoTexture *self, + gint x_offset, + gint y_offset, + gint width, + gint height); + +CLUTTER_DEPRECATED_IN_1_8_FOR(clutter_cairo_texture_invalidate) +cairo_t * clutter_cairo_texture_create (ClutterCairoTexture *self); + +G_END_DECLS + +#endif /* __CLUTTER_CAIRO_TEXTURE_DEPRECATED_H__ */