[quadrapassel] Code cleanup as per gnome coding conventions
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel] Code cleanup as per gnome coding conventions
- Date: Tue, 21 Oct 2014 17:52:36 +0000 (UTC)
commit df0c25282b24f86702f91599ff0745811d46a1b5
Author: Sahil Sareen <sahil sareen hotmail com>
Date: Tue Oct 21 18:40:41 2014 +0530
Code cleanup as per gnome coding conventions
Code convention fixes
https://bugzilla.gnome.org/show_bug.cgi?id=738935
src/game-view.vala | 2 +-
src/game.vala | 2 +-
src/preview.vala | 2 +-
src/quadrapassel.vala | 10 +++++-----
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index c5d0c83..4a4be38 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -498,7 +498,7 @@ public class BlockTexture : Clutter.CairoTexture
0.0, 1.0, 1.0
};
- cr.set_source_rgb(colors[color * 3], colors[color * 3 + 1], colors[color * 3 + 2]);
+ cr.set_source_rgb (colors[color * 3], colors[color * 3 + 1], colors[color * 3 + 2]);
cr.paint ();
}
diff --git a/src/game.vala b/src/game.vala
index 9f38feb..67f7fa5 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -386,7 +386,7 @@ public class Game : Object
if (fast_forward == enable || game_over)
return;
if (enable)
- if(!move_shape (0, 1, 0))
+ if (!move_shape (0, 1, 0))
return;
fast_forward = enable;
setup_drop_timer ();
diff --git a/src/preview.vala b/src/preview.vala
index 9dd2cbe..b7fd1f5 100644
--- a/src/preview.vala
+++ b/src/preview.vala
@@ -93,7 +93,7 @@ public class Preview : GtkClutter.Embed
if (game == null || game.next_shape == null || !enabled)
{
// If the game is set up for preview but no preview is available, still show preview field
- set_visible(enabled);
+ set_visible (enabled);
return;
}
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index 8075c1c..8fc59a3 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -120,7 +120,7 @@ public class Quadrapassel : Gtk.Application
window.set_titlebar (headerbar);
var game_grid = new Gtk.Grid ();
- game_grid.set_column_homogeneous(true);
+ game_grid.set_column_homogeneous (true);
window.add (game_grid);
view = new GameView ();
@@ -134,7 +134,7 @@ public class Quadrapassel : Gtk.Application
bool rtl = Gtk.Widget.get_default_direction () == Gtk.TextDirection.RTL;
- pause_play_button = new Gtk.Button();
+ pause_play_button = new Gtk.Button ();
pause_play_button_image = new Gtk.Image.from_icon_name (rtl ? "media-playback-start-rtl-symbolic" :
"media-playback-start-symbolic",
Gtk.IconSize.DIALOG);
@@ -333,7 +333,7 @@ public class Quadrapassel : Gtk.Application
do_preview_toggle = new Gtk.CheckButton.with_mnemonic (_("_Preview next block"));
do_preview_toggle.set_active (settings.get_boolean ("do-preview"));
- do_preview_toggle.set_sensitive(!settings.get_boolean ("pick-difficult-blocks"));
+ do_preview_toggle.set_sensitive (!settings.get_boolean ("pick-difficult-blocks"));
do_preview_toggle.toggled.connect (do_preview_toggle_toggled_cb);
grid.attach (do_preview_toggle, 0, 5, 2, 1);
@@ -450,7 +450,7 @@ public class Quadrapassel : Gtk.Application
private void difficult_blocks_toggled_cb ()
{
settings.set_boolean ("pick-difficult-blocks", difficult_blocks_toggle.get_active ());
- do_preview_toggle.set_sensitive(!settings.get_boolean ("pick-difficult-blocks"));
+ do_preview_toggle.set_sensitive (!settings.get_boolean ("pick-difficult-blocks"));
update_preview_settings ();
}
@@ -676,7 +676,7 @@ public class Quadrapassel : Gtk.Application
private void complete_cb ()
{
pause_action.set_enabled (false);
- pause_play_button_image.set_from_icon_name ( "view-refresh-symbolic" , Gtk.IconSize.DIALOG);
+ pause_play_button_image.set_from_icon_name ("view-refresh-symbolic" , Gtk.IconSize.DIALOG);
pause_play_button.action_name = "app.new-game";
pause_play_button.tooltip_text = _("Start a new game");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]