[lightsoff] Remove spaces.



commit 35e01dbbb4f24d0b13b60b9850d90a6a8a6e7328
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Mar 4 06:44:29 2015 +0100

    Remove spaces.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745625

 src/board-view.vala       |   16 ++++++++--------
 src/game-view.vala        |    2 +-
 src/lightsoff.vala        |    4 ++--
 src/puzzle-generator.vala |    2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/board-view.vala b/src/board-view.vala
index ec75cba..41ea82d 100644
--- a/src/board-view.vala
+++ b/src/board-view.vala
@@ -88,7 +88,7 @@ public class BoardView : Clutter.Group
 
     public signal void game_won ();
     public signal void light_toggled ();
-    
+
     public BoardView (Clutter.Texture off_texture, Clutter.Texture on_texture)
     {
         this.off_texture = off_texture;
@@ -125,7 +125,7 @@ public class BoardView : Clutter.Group
         xx = (x + 0.5f) * off_texture.width + 2;
         yy = (y + 0.5f) * off_texture.height + 2;
     }
-    
+
     public void fade_in (Clutter.Timeline timeline)
     {
         animate_with_timeline (Clutter.AnimationMode.EASE_OUT_SINE, timeline, "opacity", 0);
@@ -135,7 +135,7 @@ public class BoardView : Clutter.Group
     {
         animate_with_timeline (Clutter.AnimationMode.EASE_OUT_SINE, timeline, "opacity", 255);
     }
-   
+
     public void slide_in (int direction, int sign, Clutter.Timeline timeline)
     {
         /* Place offscreen */
@@ -153,7 +153,7 @@ public class BoardView : Clutter.Group
                                "x", sign * direction * width,
                                "y", sign * (1 - direction) * height);
     }
-   
+
     public void swap_in (float direction, Clutter.Timeline timeline)
     {
         /* Bring into foreground and make visible */
@@ -173,7 +173,7 @@ public class BoardView : Clutter.Group
     private void find_light (Light light, out int x, out int y)
     {
         x = y = 0;
-        for (x = 0; x < size; x++) 
+        for (x = 0; x < size; x++)
             for (y = 0; y < size; y++)
                 if (lights[x, y] == light)
                     return;
@@ -198,7 +198,7 @@ public class BoardView : Clutter.Group
     {
         if (!playable)
             return;
-            
+
         Clutter.Timeline? timeline = null;
         if (animate)
         {
@@ -232,10 +232,10 @@ public class BoardView : Clutter.Group
         if (cleared)
             game_won ();
     }
-        
+
     // Pseudorandomly generates and sets the state of each light based on
     // a level number; hopefully this is stable between machines, but that
-    // depends on GLib's PRNG stability. Also, provides some semblance of 
+    // depends on GLib's PRNG stability. Also, provides some semblance of
     // symmetry for some levels.
     public void load_level (int level)
     {
diff --git a/src/game-view.vala b/src/game-view.vala
index 866b4c0..b108b37 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -208,7 +208,7 @@ public class GameView : Clutter.Group
 
         key_cursor_ready = true;
     }
-    
+
     public void activate_cursor ()
     {
         if (key_cursor_ready)
diff --git a/src/lightsoff.vala b/src/lightsoff.vala
index 91423c0..41db0ee 100644
--- a/src/lightsoff.vala
+++ b/src/lightsoff.vala
@@ -30,7 +30,7 @@ public class LightsOff : Gtk.Application
         { "previous-level", previous_level_cb },
         { "next-level",     next_level_cb }
     };
-    
+
     private LightsOff ()
     {
         Object (application_id: "org.gnome.lightsoff", flags: ApplicationFlags.FLAGS_NONE);
@@ -107,7 +107,7 @@ public class LightsOff : Gtk.Application
     {
         previous_level.set_enabled (level > 1);
         update_title (level);
-       if (level != settings.get_int ("level"))
+        if (level != settings.get_int ("level"))
             settings.set_int ("level", level);
     }
 
diff --git a/src/puzzle-generator.vala b/src/puzzle-generator.vala
index e6cfda3..2f89601 100644
--- a/src/puzzle-generator.vala
+++ b/src/puzzle-generator.vala
@@ -101,7 +101,7 @@ public class PuzzleGenerator : Object
         // free variable set to 1 (and the others to 0).
         var basis_for_ns = new int[non_pivot_cols.length (), size * size];
         var n = 0;
-        foreach (var col in non_pivot_cols)        
+        foreach (var col in non_pivot_cols)
         {
             for (var j = 0; j < size * size; j++)
                 basis_for_ns[n, j] = 0;


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