Fixed issues regarding merge request #121

Review Request #100007 - Created Sept. 28, 2010 and submitted

Bruno de Oliveira Abinader
This patches fixes some issues found after applying the patches from merge request #121 ( - Replaced deprecated animations API from Context plasmoids). Some animations were not working properly as well as a compilation warning caused by an erroneous comparison between animation state/direction. This patch also reverts some modifications made on the API to avoid regressions :)
After compiling using this patch, the issues found by Mark after merging the patches are now solved. Animations on widgets like "text scrolling widget" are now working as expected.
Mark Kretschmann
Works fine here, thanks. I'm committing it to Mainline.