[ease/gsoc2010: 39/39] indent fixes



commit 8aa73c1c4e1a7a27396e7b83539b52dfa93bddc7
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date:   Thu May 20 20:50:25 2010 +0200

    indent fixes

 src/EditorEmbed.vala |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/src/EditorEmbed.vala b/src/EditorEmbed.vala
index dc86621..f760071 100644
--- a/src/EditorEmbed.vala
+++ b/src/EditorEmbed.vala
@@ -95,22 +95,22 @@ public class Ease.EditorEmbed : ScrollableEmbed
 
 		// reposition everything when resized
 		size_allocate.connect(() => {
-			if (zoom_fit)
-			{
-				zoom = width / height > (float)document.width / document.height
-					 ? height / document.height
-					 : width / document.width;
-				reposition_group();
-			}
-			else
-			{
-				reposition_group();
-			}
+				if (zoom_fit)
+				{
+					zoom = width / height > (float)document.width / document.height
+					? height / document.height
+					: width / document.width;
+					reposition_group();
+				}
+				else
+				{
+					reposition_group();
+				}
 
-			// set the size of the background
-			view_background.width = (float)Math.fmax(width, slide_actor.width);
-			view_background.height = height;
-		});
+				// set the size of the background
+				view_background.width = (float)Math.fmax(width, slide_actor.width);
+				view_background.height = height;
+			});
 	}
 
 	/**
@@ -222,12 +222,12 @@ public class Ease.EditorEmbed : ScrollableEmbed
 		slide_actor.set_scale_full(zoom, zoom, 0, 0);
 
 		slide_actor.x = w < width
-					  ? width / 2 - w / 2
-					  : 0;
+		? width / 2 - w / 2
+		: 0;
 
 		slide_actor.y = h < height
-					  ? height / 2 - h / 2
-					  : 0;
+		? height / 2 - h / 2
+		: 0;
 
 		if (selection_rectangle != null)
 		{



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