[gnome-chess] Remove trailing whitespaces



commit 402ddd762e31005096d6117679dfe9a595f919f1
Author: Sahil Sareen <sahil sareen hotmail com>
Date:   Mon Feb 23 18:37:42 2015 +0530

    Remove trailing whitespaces

 src/chess-engine-cecp.vala |    4 ++--
 src/chess-engine-uci.vala  |    2 +-
 src/chess-engine.vala      |    2 +-
 src/chess-scene.vala       |   14 +++++++-------
 src/gnome-chess.vala       |   18 +++++++++---------
 5 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/chess-engine-cecp.vala b/src/chess-engine-cecp.vala
index ac6a437..a26d260 100644
--- a/src/chess-engine-cecp.vala
+++ b/src/chess-engine-cecp.vala
@@ -22,7 +22,7 @@ public class ChessEngineCECP : ChessEngine
         this.options = options;
         starting.connect (start_cb);
     }
-    
+
     private void start_cb ()
     {
         write_line ("xboard");
@@ -101,7 +101,7 @@ public class ChessEngineCECP : ChessEngine
     public override void start_game ()
     {
     }
-    
+
     public override void request_move ()
     {
         write_line ("go");
diff --git a/src/chess-engine-uci.vala b/src/chess-engine-uci.vala
index e76f1df..8c86fb3 100644
--- a/src/chess-engine-uci.vala
+++ b/src/chess-engine-uci.vala
@@ -82,7 +82,7 @@ public class ChessEngineUCI : ChessEngine
             string line = (string) buffer;
 
             debug ("Read from engine: '%s'", line);
-            
+
             string[] tokens = line.split (" ");
             if (tokens.length > 0)
             {
diff --git a/src/chess-engine.vala b/src/chess-engine.vala
index d1efa47..ad6b339 100644
--- a/src/chess-engine.vala
+++ b/src/chess-engine.vala
@@ -35,7 +35,7 @@ public abstract class ChessEngine : Object
     public signal void error ();
     public signal void claim_draw ();
     public signal void offer_draw ();
-    
+
     private bool _ready = false;
     public bool ready
     {
diff --git a/src/chess-scene.vala b/src/chess-scene.vala
index 0e0a96d..6971a35 100644
--- a/src/chess-scene.vala
+++ b/src/chess-scene.vala
@@ -19,7 +19,7 @@ public class ChessModel : Object
     public bool under_threat;
     public bool is_selected;
 
-    public bool moving 
+    public bool moving
     {
         get { return x != target_x || y != target_y; }
     }
@@ -28,7 +28,7 @@ public class ChessModel : Object
     {
         this.piece = piece;
         this.x = this.target_x = x;
-        this.y = this.target_y = y;        
+        this.y = this.target_y = y;
     }
 
     public bool move_to (double x, double y)
@@ -192,7 +192,7 @@ public class ChessScene : Object
         get { return _move_format; }
         set { _move_format = value; changed (); }
     }
-    
+
     public ChessScene ()
     {
         animation_timer = new Timer ();
@@ -242,9 +242,9 @@ public class ChessScene : Object
             // Need to check selected_file here again for promotion case
             if (selected_file != -1 &&
                 game.current_player.move_with_coords (selected_rank, selected_file, rank, file))
-                selected_rank = selected_file = -1;            
+                selected_rank = selected_file = -1;
         }
-        
+
         update_board ();
         changed ();
     }
@@ -268,7 +268,7 @@ public class ChessScene : Object
     {
         update_board ();
     }
-    
+
     private ChessModel? find_model (ChessPiece piece)
     {
         foreach (var model in pieces)
@@ -326,7 +326,7 @@ public class ChessScene : Object
 
         if (!board_changed)
             return;
-            
+
         /* Have to do this as Vala can't assign the value, and copy doesn't ref the objects */
         pieces = null;
         foreach (var model in new_pieces)
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 3229de2..1a75f9a 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -254,7 +254,7 @@ public class ChessApplication : Gtk.Application
             }
         }
 
-        window.set_default_size (settings.get_int ("width"), settings.get_int ("height"));        
+        window.set_default_size (settings.get_int ("width"), settings.get_int ("height"));
 
         if (settings.get_boolean ("maximized"))
         {
@@ -1057,7 +1057,7 @@ public class ChessApplication : Gtk.Application
         var model = (Gtk.ListStore) history_combo.model;
         Gtk.TreeIter iter;
         model.append (out iter);
-        model.set (iter, 1, move.number, -1);        
+        model.set (iter, 1, move.number, -1);
         set_move_text (iter, move);
 
         /* Follow the latest move */
@@ -1122,7 +1122,7 @@ public class ChessApplication : Gtk.Application
         update_action_status ();
         update_headerbar_title ();
     }
-    
+
     private void update_action_status ()
     {
         var can_resign = game.n_moves > 0 && !game.is_paused;
@@ -1236,7 +1236,7 @@ public class ChessApplication : Gtk.Application
         case ChessResult.DRAW:
             /* Window title when the game is drawn */
             title = _("Game is Drawn");
-            pgn_game.result = PGNGame.RESULT_DRAW;            
+            pgn_game.result = PGNGame.RESULT_DRAW;
             break;
         case ChessResult.BUG:
             /*
@@ -1703,7 +1703,7 @@ public class ChessApplication : Gtk.Application
         }
         preferences_dialog = (Gtk.Dialog) preferences_builder.get_object ("preferences");
         preferences_dialog.transient_for = window;
-        
+
         settings.bind ("show-numbering", preferences_builder.get_object ("show_numbering_check"),
                        "active", SettingsBindFlags.DEFAULT);
         settings.bind ("show-move-hints", preferences_builder.get_object ("show_move_hints_check"),
@@ -1954,7 +1954,7 @@ public class ChessApplication : Gtk.Application
             if (duration >= 0)
                 return duration;
         }
-    
+
         var magnitude = (int) duration_adjustment.value;
         int multiplier = 1;
         if (custom_duration_units_combo.get_active_iter (out iter))
@@ -2153,7 +2153,7 @@ public class ChessApplication : Gtk.Application
     [CCode (cname = "G_MODULE_EXPORT orientation_combo_changed_cb", instance_pos = -1)]
     public void orientation_combo_changed_cb (Gtk.ComboBox combo)
     {
-        settings.set_string ("board-side", get_combo (combo, 1));    
+        settings.set_string ("board-side", get_combo (combo, 1));
     }
 
     public void help_cb ()
@@ -2195,7 +2195,7 @@ public class ChessApplication : Gtk.Application
         about_dialog.response.connect (about_response_cb);
         about_dialog.show ();
     }
-    
+
     private void about_response_cb (int response_id)
     {
         about_dialog.destroy ();
@@ -2272,7 +2272,7 @@ public class ChessApplication : Gtk.Application
         save_dialog_info_bar = null;
         save_dialog_error_label = null;
     }
-    
+
     private void present_save_dialog (string cancel_button_label = N_("_Cancel"),
                                       string save_button_label = N_("_Save"))
     {


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