summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-20 22:05:55 +0100
committerGravatar Martin Szulecki2010-01-20 22:05:55 +0100
commit9dc2e303469ecd2ff9628108f61e3897efe7f5a7 (patch)
tree884a8b5db1bfd08f17f1032a9d90db3c86858e50
parenta7b942539d4002397d846b3c2308433628323549 (diff)
downloadsbmanager-9dc2e303469ecd2ff9628108f61e3897efe7f5a7.tar.gz
sbmanager-9dc2e303469ecd2ff9628108f61e3897efe7f5a7.tar.bz2
Remove fade debug output and optimize fade animation interval
-rw-r--r--src/sbmanager.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index 6c5de18..a471c81 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -396,29 +396,23 @@ static void clock_update_cb(ClutterTimeline *timeline, gint msecs, SBManagerApp
static void gui_fade_init()
{
ClutterColor fade_color = { 0x00, 0x00, 0x00, 0xff };
- debug_printf("%s: enter\n", __func__);
fade_rectangle = clutter_rectangle_new_with_color(&fade_color);
clutter_container_add_actor (CLUTTER_CONTAINER (stage), fade_rectangle);
clutter_actor_set_position(fade_rectangle, 0, 0);
clutter_actor_set_size(fade_rectangle, STAGE_WIDTH, STAGE_HEIGHT);
clutter_actor_set_opacity(fade_rectangle, 0);
- debug_printf("%s: leave\n", __func__);
}
static void gui_fade_stop()
{
- debug_printf("%s: enter\n", __func__);
clutter_actor_raise_top(fade_rectangle);
- clutter_actor_animate(CLUTTER_ACTOR(fade_rectangle), CLUTTER_EASE_OUT_QUAD, 1000, "opacity", 0, NULL);
- debug_printf("%s: leave\n", __func__);
+ clutter_actor_animate(CLUTTER_ACTOR(fade_rectangle), CLUTTER_EASE_OUT_QUAD, 500, "opacity", 0, NULL);
}
static void gui_fade_start()
{
- debug_printf("%s: enter\n", __func__);
clutter_actor_raise_top(fade_rectangle);
- clutter_actor_animate(CLUTTER_ACTOR(fade_rectangle), CLUTTER_EASE_OUT_QUAD, 250, "opacity", 200, NULL);
- debug_printf("%s: leave\n", __func__);
+ clutter_actor_animate(CLUTTER_ACTOR(fade_rectangle), CLUTTER_EASE_OUT_QUAD, 500, "opacity", 180, NULL);
}
static void gui_dock_align_icons(gboolean animated)