Deprecate ClutterBehaviour and sub-classes

The Behaviour class and its implementations have been replaced by the
new animation framework API and by the constraints for layout-related
animations.

Currently, we need to make tests build, so we undef DISABLE_DEPRECATED
in specific test cases while they get ported.
This commit is contained in:
Emmanuele Bassi
2010-11-06 15:54:21 +00:00
parent 71a838815f
commit a35708eb74
32 changed files with 187 additions and 48 deletions

View File

@ -34,6 +34,8 @@
G_BEGIN_DECLS
#ifndef CLUTTER_DISABLE_DEPRECATED
#define CLUTTER_TYPE_BEHAVIOUR_ROTATE (clutter_behaviour_rotate_get_type ())
#define CLUTTER_BEHAVIOUR_ROTATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_BEHAVIOUR_ROTATE, ClutterBehaviourRotate))
#define CLUTTER_IS_BEHAVIOUR_ROTATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_BEHAVIOUR_ROTATE))
@ -52,6 +54,8 @@ typedef struct _ClutterBehaviourRotateClass ClutterBehaviourRotateClass;
* should be accessed using the provided API
*
* Since: 0.4
*
* Deprecated: 1.6: Use clutter_actor_animate() instead.
*/
struct _ClutterBehaviourRotate
{
@ -67,6 +71,8 @@ struct _ClutterBehaviourRotate
* The #ClutterBehaviourRotateClass struct contains only private data
*
* Since: 0.4
*
* Deprecated: 1.6
*/
struct _ClutterBehaviourRotateClass
{
@ -102,6 +108,8 @@ void clutter_behaviour_rotate_set_bounds (ClutterBehaviourR
gdouble angle_start,
gdouble angle_end);
#endif /* CLUTTER_DISABLE_DEPRECATED */
G_END_DECLS
#endif /* __CLUTTER_BEHAVIOUR_ROTATE_H__ */