mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
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:
parent
7115c54fda
commit
e677ebc3e8
@ -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
|
||||
|
@ -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__ */
|
||||
|
@ -1,3 +1,5 @@
|
||||
#undef CLUTTER_DISABLE_DEPRECATED
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <clutter/clutter.h>
|
||||
|
Loading…
Reference in New Issue
Block a user