[clutter] Add a deprecated header for ClutterAnimatable
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Add a deprecated header for ClutterAnimatable
- Date: Mon, 27 Feb 2012 15:58:05 +0000 (UTC)
commit 4ae36f1e5f2374d10f683720c0c876e952636755
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Feb 27 15:21:07 2012 +0000
Add a deprecated header for ClutterAnimatable
clutter/Makefile.am | 1 +
clutter/clutter-animatable.h | 9 ------
clutter/clutter-deprecated.h | 1 +
clutter/deprecated/clutter-animatable.h | 47 +++++++++++++++++++++++++++++++
4 files changed, 49 insertions(+), 9 deletions(-)
---
diff --git a/clutter/Makefile.am b/clutter/Makefile.am
index a47cbe3..27fde63 100644
--- a/clutter/Makefile.am
+++ b/clutter/Makefile.am
@@ -232,6 +232,7 @@ source_c_priv = \
# deprecated installed headers
deprecated_h = \
$(srcdir)/deprecated/clutter-actor.h \
+ $(srcdir)/deprecated/clutter-animatable.h \
$(srcdir)/deprecated/clutter-backend.h \
$(srcdir)/deprecated/clutter-behaviour.h \
$(srcdir)/deprecated/clutter-behaviour-depth.h \
diff --git a/clutter/clutter-animatable.h b/clutter/clutter-animatable.h
index 8bd3d37..945431b 100644
--- a/clutter/clutter-animatable.h
+++ b/clutter/clutter-animatable.h
@@ -97,15 +97,6 @@ struct _ClutterAnimatableIface
GType clutter_animatable_get_type (void) G_GNUC_CONST;
-CLUTTER_DEPRECATED_FOR(clutter_animatable_interpolate_value)
-gboolean clutter_animatable_animate_property (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
- const gchar *property_name,
- const GValue *initial_value,
- const GValue *final_value,
- gdouble progress,
- GValue *value);
-
GParamSpec *clutter_animatable_find_property (ClutterAnimatable *animatable,
const gchar *property_name);
void clutter_animatable_get_initial_state (ClutterAnimatable *animatable,
diff --git a/clutter/clutter-deprecated.h b/clutter/clutter-deprecated.h
index 46cad8e..6ca93b0 100644
--- a/clutter/clutter-deprecated.h
+++ b/clutter/clutter-deprecated.h
@@ -4,6 +4,7 @@
#define __CLUTTER_DEPRECATED_H_INSIDE__
#include "deprecated/clutter-actor.h"
+#include "deprecated/clutter-animatable.h"
#include "deprecated/clutter-backend.h"
#include "deprecated/clutter-behaviour.h"
#include "deprecated/clutter-behaviour-depth.h"
diff --git a/clutter/deprecated/clutter-animatable.h b/clutter/deprecated/clutter-animatable.h
new file mode 100644
index 0000000..df40e28
--- /dev/null
+++ b/clutter/deprecated/clutter-animatable.h
@@ -0,0 +1,47 @@
+/*
+ * Clutter.
+ *
+ * An OpenGL based 'interactive canvas' library.
+ *
+ * Copyright (C) 2009 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/>.
+ *
+ * Author:
+ * Emmanuele Bassi <ebassi linux intel com>
+ */
+
+#ifndef __CLUTTER_ANIMATABLE_DEPRECATED_H__
+#define __CLUTTER_ANIMATABLE_DEPRECATED_H__
+
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#include <clutter/clutter-animatable.h>
+
+G_BEGIN_DECLS
+
+CLUTTER_DEPRECATED_IN_1_8_FOR(clutter_animatable_interpolate_value)
+gboolean clutter_animatable_animate_property (ClutterAnimatable *animatable,
+ ClutterAnimation *animation,
+ const gchar *property_name,
+ const GValue *initial_value,
+ const GValue *final_value,
+ gdouble progress,
+ GValue *value);
+
+G_END_DECLS
+
+#endif /* __CLUTTER_ANIMATABLE_DEPRECATED_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]