[gnome-mines] Coding guidelines fixes
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines] Coding guidelines fixes
- Date: Tue, 21 Oct 2014 15:36:57 +0000 (UTC)
commit c3dfb334517941bc1f6dac395d2f753101a85390
Author: Sahil Sareen <sahil sareen hotmail com>
Date: Tue Oct 21 17:25:19 2014 +0530
Coding guidelines fixes
Code cleanup as per gnome coding conventions
https://bugzilla.gnome.org/show_bug.cgi?id=738925
src/gnome-mines.vala | 2 +-
src/minefield-view.vala | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-mines.vala b/src/gnome-mines.vala
index d394a28..f4e2f5c 100644
--- a/src/gnome-mines.vala
+++ b/src/gnome-mines.vala
@@ -513,7 +513,7 @@ public class Mines : Gtk.Application
window_skip_configure = true;
minefield_view.has_focus = true;
- play_pause_button.hide();
+ play_pause_button.hide ();
replay_button.hide ();
new_game_button.hide ();
high_scores_button.hide ();
diff --git a/src/minefield-view.vala b/src/minefield-view.vala
index 96bdf2e..4cd73e6 100644
--- a/src/minefield-view.vala
+++ b/src/minefield-view.vala
@@ -146,7 +146,7 @@ private class Tile : Gtk.Button
get_style_context ().add_class (style_class);
if (style_class in IMAGE_CLASSES) {
scaling_image.set_from_icon_name (style_class, Gtk.IconSize.DND);
- scaling_image.set_pixel_size (get_allocated_height()/3*2);
+ scaling_image.set_pixel_size (get_allocated_height ()/3*2);
}
}
@@ -234,13 +234,13 @@ public class MinefieldView : Gtk.Grid
get_style_context ().add_class ("minefield");
selected = new Position ();
- selected.set_x.connect ((x) => { return x; });
- selected.set_y.connect ((y) => { return y; });
+ selected.set_x.connect ( (x) => { return x; });
+ selected.set_y.connect ( (y) => { return y; });
selected.redraw.connect (redraw_sector_cb);
keyboard_cursor = new Position ();
keyboard_cursor.redraw.connect (redraw_sector_cb);
- keyboard_cursor.validate.connect ((x, y) => { return true; });
+ keyboard_cursor.validate.connect ( (x, y) => { return true; });
}
private Minefield _minefield;
@@ -272,17 +272,17 @@ public class MinefieldView : Gtk.Grid
}
selected.is_set = false;
- selected.redraw.connect ((x, y) => { if (_minefield.is_cleared (x, y)) redraw_adjacent (x, y);
});
+ selected.redraw.connect ( (x, y) => { if (_minefield.is_cleared (x, y)) redraw_adjacent (x, y);
});
selected.validate.connect (_minefield.is_location);
keyboard_cursor.is_set = false;
keyboard_cursor.position = {0, 0};
- keyboard_cursor.set_x.connect ((x) => { return x; }); //(int) (x % _minefield.width); });
- keyboard_cursor.set_y.connect ((y) => { return y; }); //(int) (y % _minefield.height); });
+ keyboard_cursor.set_x.connect ( (x) => { return x; }); // (int) (x % _minefield.width); });
+ keyboard_cursor.set_y.connect ( (y) => { return y; }); // (int) (y % _minefield.height); });
_minefield.redraw_sector.connect (redraw_sector_cb);
_minefield.explode.connect (explode_cb);
- _minefield.paused_changed.connect (() => { queue_draw (); });
+ _minefield.paused_changed.connect ( () => { queue_draw (); });
_minefield.cleared.connect (complete_cb);
queue_resize ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]