[cluttermm] Deprecate Animator.



commit e4a93970c136757f2b6bd1d85d3c5218047e80be
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 24 09:05:51 2014 +0100

    Deprecate Animator.
    
    Though we have not yet wrapped KeyframeTransition, which replaces it.

 clutter/src/animator.hg |   11 ++++++++++-
 clutter/src/score.hg    |    6 ++++--
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/clutter/src/animator.hg b/clutter/src/animator.hg
index 4c72e5d..b4e5eb9 100644
--- a/clutter/src/animator.hg
+++ b/clutter/src/animator.hg
@@ -21,17 +21,26 @@
 _DEFS(cluttermm,clutter)
 _PINCLUDE(glibmm/private/object_p.h)
 
+
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
+
 namespace Clutter
 {
 
-  _WRAP_ENUM(Interpolation, ClutterInterpolation)
+_WRAP_ENUM(Interpolation, ClutterInterpolation)
 
 class Timeline;
 
+/**
+ * @deprecated Use KeyframeTransition instead.
+ */
 class Animator : public Glib::Object
 {
   _CLASS_GOBJECT(Animator, ClutterAnimator, CLUTTER_ANIMATOR, Glib::Object, GObject)
   _IMPLEMENTS_INTERFACE(Scriptable)
+  _IS_DEPRECATED
 
 protected:
   _CTOR_DEFAULT()
diff --git a/clutter/src/score.hg b/clutter/src/score.hg
index ddc2af3..36378e0 100644
--- a/clutter/src/score.hg
+++ b/clutter/src/score.hg
@@ -28,9 +28,11 @@ _PINCLUDE(glibmm/private/object_p.h)
 namespace Clutter
 {
 
+//Note: The ClutterScore deprecation warning recommends using ClutterAnimator or
+//ClutterState, but they are also now also deprecated in favour of ClutterKeyframeTransition.
+
 /**
- * @deprecated Use Animator or State to create
- * complex animations involving multiple timelines.
+ * @deprecated Use KeyFrameTransition instead.
  */
 class Score : public Glib::Object
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]