Deprecate ClutterScore

The class is of dubious utility, now that we have a complex animation
API in ClutterAnimator and ClutterState, as opposed to a simple one
in ClutterBehaviour. The Score API also suffers from some naïve design
issues that made it far less useful than intended.
This commit is contained in:
Emmanuele Bassi 2011-07-08 12:01:08 +01:00
parent 7115c54fda
commit e677ebc3e8
3 changed files with 9 additions and 0 deletions

View File

@ -74,6 +74,9 @@
* The state can be queried using clutter_score_is_playing().
*
* #ClutterScore is available since Clutter 0.6
*
* Deprecated: 1.8: Use #ClutterAnimator or #ClutterState to create
* complex animations involving multiple timelines.
*/
#ifdef HAVE_CONFIG_H

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#if !defined(CLUTTER_DISABLE_DEPRECATED) || defined(CLUTTER_COMPILATION)
#define CLUTTER_TYPE_SCORE (clutter_score_get_type ())
#define CLUTTER_SCORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_SCORE, ClutterScore))
@ -124,6 +126,8 @@ void clutter_score_pause (ClutterScore *score);
void clutter_score_rewind (ClutterScore *score);
gboolean clutter_score_is_playing (ClutterScore *score);
#endif /* CLUTTER_DISABLE_DEPRECATED */
G_END_DECLS
#endif /* __CLUTTER_SCORE_H__ */

View File

@ -1,3 +1,5 @@
#undef CLUTTER_DISABLE_DEPRECATED
#include <stdio.h>
#include <stdlib.h>
#include <clutter/clutter.h>