cclutter

What should I use instead of clutter_score_new?


I've been following this tutorial on Clutter, and as you can imagine, it's pretty out of date, with my GCC throwing all manner of deprecation warnings about. As I don't want them to be chucked around (things get deprecated for a reason), I managed to get around most things in there by either following the warnings' advice, or by judiciously researching the Clutter reference.

However, one of the sections (the one about scores) requires me to use clutter_score_new. According to both the GCC warnings and the reference material, this is deprecated, with no alternatives or suggestions given. Having looked at the documentation, I'm a bit lost - what should I do?


Solution

  • ClutterScore was a bad class that, sadly, was not removed in time before 1.0 got released.

    you can achieve the same effect using ClutterTimeline and markers to connect/start/stop timelines in a hierarchical way.

    to be fair, though, there's no real reason to use ClutterTimeline directly these days. you can use the implicit animation API directly, or the explicit Transition API.