[gnome-mahjongg] Do not create new fundamental types
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg] Do not create new fundamental types
- Date: Tue, 24 Jun 2014 13:48:47 +0000 (UTC)
commit a8bace9285eda18540fa0ad92dfe7d6f6aa0f631
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Jun 24 08:42:01 2014 -0500
Do not create new fundamental types
src/game.vala | 6 +++---
src/history.vala | 4 ++--
src/map.vala | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 85a3145..751d30e 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -8,7 +8,7 @@
* license.
*/
-public class Tile
+public class Tile : Object
{
public int number;
public Slot slot;
@@ -48,7 +48,7 @@ private static bool switch_tiles (Tile a, Tile b)
return false;
}
-public class Match
+public class Match : Object
{
public Tile tile0;
public Tile tile1;
@@ -60,7 +60,7 @@ public class Match
}
}
-public class Game
+public class Game : Object
{
public Map map;
public List<Tile> tiles = null;
diff --git a/src/history.vala b/src/history.vala
index e6e0ad7..1146f01 100644
--- a/src/history.vala
+++ b/src/history.vala
@@ -8,7 +8,7 @@
* license.
*/
-public class History
+public class History : Object
{
public string filename;
public List<HistoryEntry> entries;
@@ -97,7 +97,7 @@ public class History
}
}
-public class HistoryEntry
+public class HistoryEntry : Object
{
public DateTime date;
public string name;
diff --git a/src/map.vala b/src/map.vala
index 8b4ad58..783d1c8 100644
--- a/src/map.vala
+++ b/src/map.vala
@@ -8,7 +8,7 @@
* license.
*/
-public class Slot
+public class Slot : Object
{
public int x;
public int y;
@@ -40,7 +40,7 @@ private static int compare_slots (Slot a, Slot b)
return 0;
}
-public class Map
+public class Map : Object
{
public string? name = null;
public string? score_name = null;
@@ -243,7 +243,7 @@ public class Map
}
}
-public class MapLoader
+public class MapLoader : Object
{
public List<Map> maps = null;
private Map map;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]