[clutter] Add a deprecated header for ClutterCairoTexture
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Add a deprecated header for ClutterCairoTexture
- Date: Mon, 27 Feb 2012 15:58:20 +0000 (UTC)
commit 2daf2e8e6bca403b24d8a79a02bc7d3a5006f7b4
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Feb 27 15:47:46 2012 +0000
Add a deprecated header for ClutterCairoTexture
clutter/Makefile.am | 1 +
clutter/clutter-cairo-texture.h | 10 -----
clutter/clutter-deprecated.h | 1 +
clutter/deprecated/clutter-cairo-texture.h | 51 ++++++++++++++++++++++++++++
4 files changed, 53 insertions(+), 10 deletions(-)
---
diff --git a/clutter/Makefile.am b/clutter/Makefile.am
index dc19b19..a15dc17 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 6b94506..c26b741 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 3cc65c4..8f6a1e0 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 0000000..46c0f20
--- /dev/null
+++ b/clutter/deprecated/clutter-cairo-texture.h
@@ -0,0 +1,51 @@
+/*
+ * Clutter
+ *
+ * An OpenGL based 'interactive canvas' library.
+ *
+ * Authored By: Emmanuele Bassi <ebassi linux intel com>
+ * Matthew Allum <mallum o-hand com>
+ * Chris Lord <chris o-hand com>
+ * Iain Holmes <iain o-hand com>
+ * Neil Roberts <neil linux intel com>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_CAIRO_TEXTURE_DEPRECATED_H__
+#define __CLUTTER_CAIRO_TEXTURE_DEPRECATED_H__
+
+#include <clutter/clutter-cairo-texture.h>
+
+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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]