[quadrapassel] Remove trailing whitespaces
- From: Sahil Sareen <ssareen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel] Remove trailing whitespaces
- Date: Sat, 28 Feb 2015 09:33:08 +0000 (UTC)
commit ec175f130bb4eebbc38724baf93ca1eecc7f65eb
Author: Sahil Sareen <sahil sareen hotmail com>
Date: Sat Feb 28 12:51:49 2015 +0530
Remove trailing whitespaces
src/game-view.vala | 24 ++++++++++++------------
src/game.vala | 18 +++++++++---------
src/history.vala | 2 +-
src/preview.vala | 4 ++--
src/quadrapassel.vala | 6 +++---
5 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index 4a4be38..bd7e437 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -77,7 +77,7 @@ public class GameView : GtkClutter.Embed
/* Shadow of falling piece */
private Clutter.Clone? shape_shadow = null;
-
+
private bool _show_shadow = false;
public bool show_shadow
{
@@ -177,7 +177,7 @@ public class GameView : GtkClutter.Embed
shape_shadow.set_position (game.shape.x * cell_size, game.shadow_y * cell_size);
shape.restore_easing_state ();
}
-
+
private void update_shadow ()
{
if (game != null && game.shape != null && show_shadow)
@@ -450,7 +450,7 @@ public class BlockTexture : Clutter.CairoTexture
invalidate ();
}
}
-
+
public BlockTexture (int color)
{
auto_resize = true;
@@ -462,7 +462,7 @@ public class BlockTexture : Clutter.CairoTexture
clear ();
uint w, h;
- get_surface_size (out w, out h);
+ get_surface_size (out w, out h);
cr.scale (w, h);
switch (theme)
@@ -524,31 +524,31 @@ public class BlockTexture : Clutter.CairoTexture
0.780392156863, 0.247058823529, 0.247058823529,
0.713725490196, 0.192156862745, 0.192156862745,
0.61568627451, 0.164705882353, 0.164705882353, /* red */
-
+
0.552941176471, 0.788235294118, 0.32549019607,
0.474509803922, 0.713725490196, 0.243137254902,
0.388235294118, 0.596078431373, 0.18431372549, /* green */
-
+
0.313725490196, 0.450980392157, 0.623529411765,
0.239215686275, 0.345098039216, 0.474509803922,
0.21568627451, 0.313725490196, 0.435294117647, /* blue */
-
+
1.0, 1.0, 1.0,
0.909803921569, 0.909803921569, 0.898039215686,
0.701960784314, 0.701960784314, 0.670588235294, /* white */
-
+
0.945098039216, 0.878431372549, 0.321568627451,
0.929411764706, 0.839215686275, 0.113725490196,
0.760784313725, 0.682352941176, 0.0274509803922, /* yellow */
-
+
0.576470588235, 0.364705882353, 0.607843137255,
0.443137254902, 0.282352941176, 0.46666666666,
0.439215686275, 0.266666666667, 0.46666666666, /* purple */
-
+
0.890196078431, 0.572549019608, 0.258823529412,
0.803921568627, 0.450980392157, 0.101960784314,
0.690196078431, 0.388235294118, 0.0901960784314, /* orange */
-
+
0.392156862745, 0.392156862745, 0.392156862745,
0.262745098039, 0.262745098039, 0.262745098039,
0.21568627451, 0.235294117647, 0.23921568627 /* grey */
@@ -651,5 +651,5 @@ public class BlockTexture : Clutter.CairoTexture
/* Add inner edge highlight */
cr.stroke ();
- }
+ }
}
diff --git a/src/game.vala b/src/game.vala
index 67f7fa5..a793388 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -100,7 +100,7 @@ private const int block_table[448] =
1, 1, 0, 0,
0, 1, 0, 0,
0, 0, 0, 0,
-
+
/* ** */
/* ** */
@@ -176,7 +176,7 @@ public class Block : Object
/* Color of block */
public int color;
-
+
public Block copy ()
{
var b = new Block ();
@@ -219,7 +219,7 @@ public class Game : Object
{
/* Falling shape */
public Shape? shape = null;
-
+
/* Next shape to be used */
public Shape? next_shape = null;
@@ -228,7 +228,7 @@ public class Game : Object
public int width { get { return blocks.length[0]; } }
public int height { get { return blocks.length[1]; } }
-
+
/* Number of lines that have been destroyed */
public int n_lines_destroyed = 0;
@@ -243,7 +243,7 @@ public class Game : Object
/* The current level */
public int level { get { return starting_level + n_lines_destroyed / 10; } }
-
+
/* true if we are in fast forward mode */
private bool fast_forward = false;
@@ -404,7 +404,7 @@ public class Game : Object
public void stop ()
{
if (drop_timeout != 0)
- Source.remove (drop_timeout);
+ Source.remove (drop_timeout);
}
private void setup_drop_timer ()
@@ -512,7 +512,7 @@ public class Game : Object
/* High metric for each line destroyed */
var metric = (g.n_lines_destroyed - orig_lines) * 5000;
-
+
/* Low metric for large columns */
for (var x = 0; x < width; x++)
{
@@ -525,7 +525,7 @@ public class Game : Object
metric -= 5 * (height - y);
}
-
+
if (metric > metrics[type])
metrics[type] = metric;
@@ -628,7 +628,7 @@ public class Game : Object
break;
}
}
-
+
if (explode)
{
if (y == height - 1)
diff --git a/src/history.vala b/src/history.vala
index ba3e9ef..d6895e0 100644
--- a/src/history.vala
+++ b/src/history.vala
@@ -76,7 +76,7 @@ public class History : Object
catch (FileError e)
{
warning ("Failed to save history: %s", e.message);
- }
+ }
}
private DateTime? parse_date (string date)
diff --git a/src/preview.vala b/src/preview.vala
index b7fd1f5..af502c2 100644
--- a/src/preview.vala
+++ b/src/preview.vala
@@ -32,7 +32,7 @@ public class Preview : GtkClutter.Embed
{
get { return (get_allocated_width () + get_allocated_height ()) / 2 / 5; }
}
-
+
private Game? _game = null;
public Game? game
{
@@ -46,7 +46,7 @@ public class Preview : GtkClutter.Embed
update_block ();
}
}
-
+
private bool _enabled = true;
public bool enabled
{
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index 80de027..a7258a3 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -72,7 +72,7 @@ public class Quadrapassel : Gtk.Application
{
Object (application_id: "org.gnome.quadrapassel", flags: ApplicationFlags.FLAGS_NONE);
}
-
+
protected override void startup ()
{
base.startup ();
@@ -110,7 +110,7 @@ public class Quadrapassel : Gtk.Application
window.window_state_event.connect (window_state_event_cb);
window.key_press_event.connect (key_press_event_cb);
window.key_release_event.connect (key_release_event_cb);
- window.set_default_size (settings.get_int ("window-width"), settings.get_int ("window-height"));
+ window.set_default_size (settings.get_int ("window-width"), settings.get_int ("window-height"));
if (settings.get_boolean ("window-is-maximized"))
window.maximize ();
@@ -635,7 +635,7 @@ public class Quadrapassel : Gtk.Application
{
new_game ();
}
-
+
private void new_game ()
{
if (game != null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]