[clutter] docs: Add the Deprecate tag to Behaviours
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] docs: Add the Deprecate tag to Behaviours
- Date: Mon, 20 Jun 2011 17:49:00 +0000 (UTC)
commit 513f218c389ed0b8e47e7cc1442c4f641c685b4b
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Jun 20 18:42:08 2011 +0100
docs: Add the Deprecate tag to Behaviours
And link the migration guide.
clutter/clutter-behaviour-depth.c | 4 ++++
clutter/clutter-behaviour-ellipse.c | 3 +++
clutter/clutter-behaviour-opacity.c | 4 ++++
clutter/clutter-behaviour-path.c | 3 +++
clutter/clutter-behaviour-rotate.c | 4 ++++
clutter/clutter-behaviour-scale.c | 4 ++++
clutter/clutter-behaviour.c | 5 ++++-
7 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-behaviour-depth.c b/clutter/clutter-behaviour-depth.c
index eaf630b..61512cf 100644
--- a/clutter/clutter-behaviour-depth.c
+++ b/clutter/clutter-behaviour-depth.c
@@ -44,6 +44,10 @@
* depth of a set of actors between a start and end depth.
*
* #ClutterBehaviourDepth is available since Clutter 0.4.
+ *
+ * Deprecated: 1.6: Use the #ClutterActor:depth property and
+ * clutter_actor_animate(), or #ClutterAnimator, or #ClutterState
+ * instead.
*/
G_DEFINE_TYPE (ClutterBehaviourDepth,
diff --git a/clutter/clutter-behaviour-ellipse.c b/clutter/clutter-behaviour-ellipse.c
index 5f2c779..1267465 100644
--- a/clutter/clutter-behaviour-ellipse.c
+++ b/clutter/clutter-behaviour-ellipse.c
@@ -37,6 +37,9 @@
* behaviour will update the actor's position and depth and set them
* to what is dictated by the ellipses initial position.</para></note>
*
+ * Deprecated: 1.6: Use clutter_actor_animate(), #ClutterPath and a
+ * #ClutterPathConstraint instead.
+ *
* Since: 0.4
*/
diff --git a/clutter/clutter-behaviour-opacity.c b/clutter/clutter-behaviour-opacity.c
index e322c67..91dbb6b 100644
--- a/clutter/clutter-behaviour-opacity.c
+++ b/clutter/clutter-behaviour-opacity.c
@@ -30,6 +30,10 @@
* #ClutterBehaviourOpacity controls the opacity of a set of actors.
*
* Since: 0.2
+ *
+ * Deprecated: 1.6: Use the #ClutterActor:opacity property and
+ * clutter_actor_animate(), or #ClutterAnimator, or #ClutterState
+ * instead.
*/
#ifdef HAVE_CONFIG_H
diff --git a/clutter/clutter-behaviour-path.c b/clutter/clutter-behaviour-path.c
index 4c92140..f283928 100644
--- a/clutter/clutter-behaviour-path.c
+++ b/clutter/clutter-behaviour-path.c
@@ -58,6 +58,9 @@
* starting #ClutterKnot.</note>
*
* #ClutterBehaviourPath is available since Clutter 0.2
+ *
+ * Deprecated: 1.6: Use #ClutterPath and #ClutterPathConstraint with
+ * clutter_actor_animate() instead.
*/
#ifdef HAVE_CONFIG_H
diff --git a/clutter/clutter-behaviour-rotate.c b/clutter/clutter-behaviour-rotate.c
index c38dc18..40ede6b 100644
--- a/clutter/clutter-behaviour-rotate.c
+++ b/clutter/clutter-behaviour-rotate.c
@@ -29,6 +29,10 @@
* angle on a given axis.
*
* The #ClutterBehaviourRotate is available since version 0.4.
+ *
+ * Deprecated: 1.6: Use the #ClutterActor rotation properties and
+ * clutter_actor_animate(), or #ClutterAnimator, or #ClutterState
+ * instead.
*/
#ifdef HAVE_CONFIG_H
diff --git a/clutter/clutter-behaviour-scale.c b/clutter/clutter-behaviour-scale.c
index 6d21a3e..337a490 100644
--- a/clutter/clutter-behaviour-scale.c
+++ b/clutter/clutter-behaviour-scale.c
@@ -29,6 +29,10 @@
* and #ClutterActor:scale-y instead.
*
* A #ClutterBehaviourScale interpolates actors size between two values.
+ *
+ * Deprecated: 1.6: Use the #ClutterActor:scale-x and #ClutterActor:scale-y
+ * properties, and clutter_actor_animate(), or #ClutterAnimator or
+ * #ClutterState instead.
*/
#ifdef HAVE_CONFIG_H
diff --git a/clutter/clutter-behaviour.c b/clutter/clutter-behaviour.c
index 300b3cb..20fba2a 100644
--- a/clutter/clutter-behaviour.c
+++ b/clutter/clutter-behaviour.c
@@ -25,7 +25,10 @@
* SECTION:clutter-behaviour
* @Title: ClutterBehaviour
* @short_description: Class for providing behaviours to actors
- * @Deprecated: 1.6: Use the implicit animation API instead.
+ *
+ * Deprecated: 1.6: Use clutter_actor_animate(), #ClutterAnimator and
+ * #ClutterState instead. See also <link linkend="migrating-ClutterBehaviour">the
+ * migration guide</link> for more information.
*
* #ClutterBehaviour is the base class for implementing behaviours. A
* behaviour is a controller object for #ClutterActor<!-- -->s; you can
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]