[gnome-games/gnibbles-clutter-rebased: 52/129] Small fade-out effect on splash screen when the game begin



commit 19b3964fd07e2dbc9c4611dbd2df82be84b9ff93
Author: Guillaume Beland <guillaume beland gmail com>
Date:   Wed Jul 15 18:27:20 2009 -0400

    Small fade-out effect on splash screen when the game begin

 gnibbles/main.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gnibbles/main.c b/gnibbles/main.c
index 6b9d696..ef9e1aa 100644
--- a/gnibbles/main.c
+++ b/gnibbles/main.c
@@ -904,12 +904,19 @@ render_logo (void)
   clutter_container_add_actor (CLUTTER_CONTAINER (stage), 
                          CLUTTER_ACTOR (logo));
 }
+static void
+on_hide_logo_completed (ClutterAnimation *animation, ClutterActor *actor)
+{
+  clutter_actor_hide (actor);
+}
 
 static void
 hide_logo (void)
 {
-  clutter_actor_hide (logo);
-  //clutter_actor_queue_redraw (CLUTTER_ACTOR (logo));
+  clutter_actor_animate (logo, CLUTTER_EASE_IN_QUAD, 100,
+                         "opacity", 0,
+                         "signal::completed", on_hide_logo_completed, logo,
+                         NULL);
 }
 
 int



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