[cheese] do a fade in animatin on each new effect page
- From: Daniel G. Siegel <dgsiegel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] do a fade in animatin on each new effect page
- Date: Sun, 5 Dec 2010 16:33:25 +0000 (UTC)
commit 9ffc894d6b037b9b3f0e5c2107e0b5ee9dc9a18d
Author: daniel g. siegel <dgsiegel gnome org>
Date: Sun Dec 5 17:32:47 2010 +0100
do a fade in animatin on each new effect page
src/cheese-window.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 26a6cc4..ae65e01 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -777,10 +777,12 @@ public class Cheese.MainWindow : Gtk.Window
current_effects_page = number;
if (viewport_layout.get_children ().index (current_effects_grid) != -1)
{
- viewport_layout.remove ((Clutter.Actor)current_effects_grid);
+ viewport_layout.remove ((Clutter.Actor) current_effects_grid);
}
current_effects_grid = effects_grids[number];
+ current_effects_grid.set ("opacity", 0);
viewport_layout.add ((Clutter.Actor) current_effects_grid);
+ current_effects_grid.animate (Clutter.AnimationMode.LINEAR, 1000, "opacity", 255);
for (int i = 0; i < effects_manager.effects.size; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]