Upgrading deprecations
- From: phantomjinx <p g richardson phantomjinx co uk>
- To: clutter-list gnome org
- Subject: Upgrading deprecations
- Date: Mon, 13 May 2013 10:36:48 +0100
Hi,
I am trying to bring the coverflow CD animation in gtkpod up to version 1.12 by removing the
deprecations.
Having replaced ClutterBehaviour and ClutterAnimation with use of the easing state as described here
[1], I have
run into a problem.
Clicking the right button scrolls the set of CD covers to the left and likewise clicking the left
button scrolls to the right.
With an easing duration of 1600ms, this works nicely except that the rotation is always clockwise
whereas with ClutterBehaviour I was
able to set it to counter-clockwise ensuring that a CD cover would rotate the shortest way around,
rather than spinning needlessly.
Secondly and more importantly, if I click the right button quickly, the animation may still be in
the middle hence the covers end up out of
position to the point that some even end up on the wrong side of the screen. I originally got around
this by calling clutter_timeline_stop
and clearing all clutter behaviours before starting a new animation. How would I achieve the same
kind of thing with the easing state please?
My attempts so far can be found here [2].
Any help much appreciated.
Thanks
PGR
[1] https://developer.gnome.org/clutter/stable/migrating-ClutterAnimation.html
[2]
https://gitorious.org/~phantomjinx/gtkpod/phantomjinx-gtkpod-plugin/blobs/updating-clarity/plugins/clarity/clarity_canvas.c
--
Paul Richardson
* p g richardson phantomjinx co uk
* p g richardson redhat com
* pgrichardson linux com
"I know exactly who reads the papers ...
* The Daily Mirror is read by people who think they run the country.
* The Guardian is read by people who think they ought to run the country.
* The Times is read by people who do actually run the country.
* The Daily Mail is read by the wives of the people who run the country.
* The Financial Times is read by the people who own the country.
* The Morning Star is read by the people who think the country ought to be run by another country.
* The Daily Telegraph is read by the people who think it is."
Jim Hacker, Yes Minister
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]