[gnome-chess] Don't create new fundamental types



commit c948843e686b81ab0abf57efe6fb3faeebc18ea9
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jun 24 08:14:59 2014 -0500

    Don't create new fundamental types

 lib/chess-bitboard.vala |    2 +-
 lib/chess-move.vala     |    2 +-
 lib/chess-pgn.vala      |    4 ++--
 lib/chess-piece.vala    |    2 +-
 lib/chess-state.vala    |    2 +-
 src/3ds.vala            |    2 +-
 src/ai-profile.vala     |    2 +-
 src/chess-scene.vala    |    2 +-
 src/gnome-chess.vala    |    2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/lib/chess-bitboard.vala b/lib/chess-bitboard.vala
index 4721c0b..113f0f1 100644
--- a/lib/chess-bitboard.vala
+++ b/lib/chess-bitboard.vala
@@ -9,7 +9,7 @@
  * license.
  */
 
-public class BitBoard
+public class BitBoard : Object
 {
     /* Bitboard for each location */
     public static const int64 set_location_masks[] =
diff --git a/lib/chess-move.vala b/lib/chess-move.vala
index c4efa4a..49a1f8c 100644
--- a/lib/chess-move.vala
+++ b/lib/chess-move.vala
@@ -9,7 +9,7 @@
  * license.
  */
 
-public class ChessMove
+public class ChessMove : Object
 {
     public int number;
     public ChessPiece piece;
diff --git a/lib/chess-pgn.vala b/lib/chess-pgn.vala
index edf227e..2a3a829 100644
--- a/lib/chess-pgn.vala
+++ b/lib/chess-pgn.vala
@@ -46,7 +46,7 @@ public errordomain PGNError
     LOAD_ERROR
 }
 
-public class PGNGame
+public class PGNGame : Object
 {
     public HashTable<string, string> tags;
     public List<string> moves;
@@ -222,7 +222,7 @@ enum State
     ERROR
 }
 
-public class PGN
+public class PGN : Object
 {
     public List<PGNGame> games;
 
diff --git a/lib/chess-piece.vala b/lib/chess-piece.vala
index 7a63844..fcf4982 100644
--- a/lib/chess-piece.vala
+++ b/lib/chess-piece.vala
@@ -19,7 +19,7 @@ public enum PieceType
     KING
 }
 
-public class ChessPiece
+public class ChessPiece : Object
 {
     public ChessPlayer player;
     public PieceType type;
diff --git a/lib/chess-state.vala b/lib/chess-state.vala
index 0f01a12..4b16eb9 100644
--- a/lib/chess-state.vala
+++ b/lib/chess-state.vala
@@ -16,7 +16,7 @@ public enum CheckState
     CHECKMATE
 }
 
-public class ChessState
+public class ChessState : Object
 {
     public int number = 0;
     public ChessPlayer players[2];
diff --git a/src/3ds.vala b/src/3ds.vala
index 86c6952..114cb20 100644
--- a/src/3ds.vala
+++ b/src/3ds.vala
@@ -11,7 +11,7 @@
 
 using GL;
 
-public class TDSModel
+public class TDSModel : Object
 {
     private GLfloat min_height = float.MAX;
     private GLfloat max_height = float.MIN;
diff --git a/src/ai-profile.vala b/src/ai-profile.vala
index e5e315d..8dda738 100644
--- a/src/ai-profile.vala
+++ b/src/ai-profile.vala
@@ -10,7 +10,7 @@
  * license.
  */
 
-public class AIProfile
+public class AIProfile : Object
 {
     public string name { get; private set; }
     public string protocol { get; private set; }
diff --git a/src/chess-scene.vala b/src/chess-scene.vala
index cd1b560..e1fdee2 100644
--- a/src/chess-scene.vala
+++ b/src/chess-scene.vala
@@ -9,7 +9,7 @@
  * license.
  */
 
-public class ChessModel
+public class ChessModel : Object
 {
     public ChessPiece piece;
     public double x;
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 14caf9a..41898cd 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -2242,7 +2242,7 @@ public class Application : Gtk.Application
     }
 }
 
-class GnomeChess
+class GnomeChess : Object
 {
     static bool show_version;
     public static const OptionEntry[] options =


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