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

@ -36,6 +36,8 @@
G_BEGIN_DECLS
#ifndef CLUTTER_DISABLE_DEPRECATED
#define CLUTTER_TYPE_BEHAVIOUR_PATH (clutter_behaviour_path_get_type ())
#define CLUTTER_BEHAVIOUR_PATH(obj) \
@ -69,6 +71,9 @@ typedef struct _ClutterBehaviourPathClass ClutterBehaviourPathClass;
* and should be accessed using the provided API
*
* Since: 0.2
*
* Deprecated: 1.6: Use #ClutterPathConstraint and clutter_actor_animate()
* instead.
*/
struct _ClutterBehaviourPath
{
@ -85,6 +90,8 @@ struct _ClutterBehaviourPath
* The #ClutterBehaviourPathClass struct contains only private data
*
* Since: 0.2
*
* Deprecated: 1.6
*/
struct _ClutterBehaviourPathClass
{
@ -121,6 +128,8 @@ void clutter_behaviour_path_set_path (ClutterBehaviourPath *pat
ClutterPath * clutter_behaviour_path_get_path (ClutterBehaviourPath *pathb);
#endif /* CLUTTER_DISABLE_DEPRECATED */
G_END_DECLS
#endif /* __CLUTTER_BEHAVIOUR_PATH_H__ */