[seed] ClutterPad: fix indentation of animated-rectangle example.



commit 005cb0afd0a4d02b5bcb864bb9cbcc26266dc4a5
Author: Tim Horton <hortont svn gnome org>
Date:   Thu May 14 03:11:50 2009 -0400

    ClutterPad: fix indentation of animated-rectangle example.
---
 .../clutter-pad/examples/animated-rectangle.js     |   35 ++++++++++---------
 1 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/examples/clutter-pad/examples/animated-rectangle.js b/examples/clutter-pad/examples/animated-rectangle.js
index d2ae869..ad80b6b 100644
--- a/examples/clutter-pad/examples/animated-rectangle.js
+++ b/examples/clutter-pad/examples/animated-rectangle.js
@@ -3,24 +3,25 @@ Clutter = imports.gi.Clutter;
 stage = Clutter.Stage.get_default();
 
 colors = [{red: 255, alpha: 255},
-		{green: 255, alpha: 255},
-		{blue: 255, alpha: 255},
-		{red: 255, green: 255, alpha: 255}]
+                {green: 255, alpha: 255},
+                {blue: 255, alpha: 255},
+                {red: 255, green: 255, alpha: 255}]
 
-for (i = 0; i < 4; i++){
-    rect = new Clutter.Rectangle();
-    rect.color = colors[i];
-    rect.x = rect.y = 0;
+for (i = 0; i < 4; i++)
+{
+	rect = new Clutter.Rectangle();
+	rect.color = colors[i];
+	rect.x = rect.y = 0;
 	rect.x += i *25;
-    rect.width = rect.height = 25;
-    stage.add_actor(rect);
+	rect.width = rect.height = 25;
+	stage.add_actor(rect);
     
-   rect.anim = rect.animate(Clutter.AnimationMode.EASE_OUT_BOUNCE, 1500+500*i,
-		     {
-			 height: 100,
-			 width: 100,
-			 x: stage.width - 100*(i+1),
-			 y: stage.height - 100,
-			 rotation_angle_z: 360,
-		     });
+	rect.anim = rect.animate(Clutter.AnimationMode.EASE_OUT_BOUNCE, 1500+500*i,
+	{
+		height: 100,
+		width: 100,
+		x: stage.width - 100*(i+1),
+		y: stage.height - 100,
+		rotation_angle_z: 360
+	});
 }



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