summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-12-20 20:58:03 +0100
committerGravatar Nikias Bassen2009-12-20 20:58:03 +0100
commitd91d5953aa805ae833036abfe71d45ade63c6ba2 (patch)
tree0e2f24dc292269e8e9c22b94d3929b59dea2355d
parenteba58b103fa938a32a814a082cb17645146ac5a5 (diff)
downloadsbmanager-d91d5953aa805ae833036abfe71d45ade63c6ba2.tar.gz
sbmanager-d91d5953aa805ae833036abfe71d45ade63c6ba2.tar.bz2
Yes, page switch animation!
-rw-r--r--src/sbmanager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index a9304ea..d070cca 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -182,13 +182,11 @@ static void page_indicator_group_align()
static gboolean page_indicator_clicked(ClutterActor *actor, ClutterEvent *event, gpointer data)
{
- printf("page indicator clicked\n");
current_page = GPOINTER_TO_UINT(data);
page_indicator_group_align();
- /* TODO: Add animation here */
- clutter_actor_set_x(the_sb, -(current_page * STAGE_WIDTH));
+ clutter_actor_animate(the_sb, CLUTTER_EASE_IN_OUT_CUBIC, 400, "x", (gfloat)(-(current_page*STAGE_WIDTH)), NULL);
return TRUE;
}