[gnome-klotski/mallard-help] Remove white spaces.



commit 38e0eeefe1871f2de2a5a48523daef7a75a3f4ee
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Jul 15 11:56:39 2014 +0200

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

 src/puzzle-view.vala  |   24 ++++++++++--------------
 src/score-dialog.vala |    2 +-
 2 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/src/puzzle-view.vala b/src/puzzle-view.vala
index aea6312..7ea7a42 100644
--- a/src/puzzle-view.vala
+++ b/src/puzzle-view.vala
@@ -17,7 +17,7 @@ public class PuzzleView : Gtk.DrawingArea
     private const int THEME_TILE_CENTER = 14;
     private const int THEME_TILE_SIZE = 34;
 
-    private int render_size = 0;    
+    private int render_size = 0;
 
     private int piece_x = 0;
     private int piece_y = 0;
@@ -79,8 +79,8 @@ public class PuzzleView : Gtk.DrawingArea
         image_filepath = Path.build_filename (DATA_DIRECTORY, "gnome-klotski.svg", null);
 
         try
-        {            
-            tiles_handle = new Rsvg.Handle.from_file (image_filepath);           
+        {
+            tiles_handle = new Rsvg.Handle.from_file (image_filepath);
         }
         catch (Error e)
         {
@@ -99,29 +99,25 @@ public class PuzzleView : Gtk.DrawingArea
 
     protected override bool draw (Cairo.Context cr)
     {
-
         if (tile_size != render_size)
-        {          
-
+        {
             if (tiles_handle != null)
-            {                
+            {
                 int height = tile_size * 2;
                 int width = tile_size * THEME_TILE_SEGMENTS;
 
-                surface = new Cairo.Surface.similar (cr.get_target (), Cairo.Content.COLOR_ALPHA, width, 
height); 
+                surface = new Cairo.Surface.similar (cr.get_target (), Cairo.Content.COLOR_ALPHA, width, 
height);
                 var c = new Cairo.Context (surface);
 
                 /* calc scale factor */
                 double sfw = (double) width / 918;
-                double sfh = (double) height / 68; 
-               
+                double sfh = (double) height / 68;
+
                 c.scale (sfw, sfh);
 
                 tiles_handle.render_cairo (c);
-
             }
             render_size = tile_size;
-
         }
 
         var style = get_style_context ();
@@ -179,7 +175,7 @@ public class PuzzleView : Gtk.DrawingArea
 
         if (puzzle.get_piece_id (puzzle.map, x, y) != ' ')
         {
-            Gdk.cairo_rectangle (cr, rect);            
+            Gdk.cairo_rectangle (cr, rect);
             cr.set_source_surface (surface, rect.x - puzzle.get_piece_nr (x, y) * tile_size, rect.y - 
tile_size / 2);
             cr.fill ();
         }
@@ -195,7 +191,7 @@ public class PuzzleView : Gtk.DrawingArea
 
             cr.rectangle (rect.x + overlay_offset, rect.y + overlay_offset,
                           overlay_size, overlay_size);
-            
+
             cr.set_source_surface (surface, rect.x - value * tile_size, rect.y - tile_size / 2);
             cr.fill ();
         }
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index 4d8b6e6..7bc34be 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -7,7 +7,7 @@
  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
  * license.
  */
- 
+
  public class ScoreDialog : Gtk.Dialog
 {
     private History history;


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