[gnome-tetravex] Reduce the scope of TileImage.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex] Reduce the scope of TileImage.
- Date: Wed, 18 Sep 2019 11:07:46 +0000 (UTC)
commit 392063184d7409a4e702dc49db36b0145e773382
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Sep 18 13:06:41 2019 +0200
Reduce the scope of TileImage.
src/puzzle-view.vala | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/src/puzzle-view.vala b/src/puzzle-view.vala
index 0840cbb..ae3694c 100644
--- a/src/puzzle-view.vala
+++ b/src/puzzle-view.vala
@@ -9,37 +9,37 @@
* license.
*/
-private class TileImage : Object
+private class PuzzleView : Gtk.DrawingArea
{
- /* Tile being moved */
- internal Tile tile;
+ private class TileImage : Object
+ {
+ /* Tile being moved */
+ internal Tile tile;
- /* Location of tile */
- internal double x;
- internal double y;
+ /* Location of tile */
+ internal double x;
+ internal double y;
- /* Co-ordinates to move from */
- internal double source_x;
- internal double source_y;
+ /* Co-ordinates to move from */
+ internal double source_x;
+ internal double source_y;
- /* Time started moving */
- internal double source_time;
+ /* Time started moving */
+ internal double source_time;
- /* Co-ordinates to target for */
- internal double target_x;
- internal double target_y;
+ /* Co-ordinates to target for */
+ internal double target_x;
+ internal double target_y;
- /* Duration of movement */
- internal double duration;
+ /* Duration of movement */
+ internal double duration;
- internal TileImage (Tile tile)
- {
- this.tile = tile;
+ internal TileImage (Tile tile)
+ {
+ this.tile = tile;
+ }
}
-}
-private class PuzzleView : Gtk.DrawingArea
-{
/* Minimum size of a tile */
private const int minimum_size = 80;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]