[gnome-chess/gnome-3-12] Fix build



commit 325656a5207834d81c97c34d079b872284e41f9d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jun 24 18:58:14 2014 -0500

    Fix build
    
    Oops, this was cherry-picked from gnome-3-10 and not all of these
    signals still exist.
    
    Turns out the signal misfires are a Vala codegen mistake when it creates
    a fundamental type, and can be avoided by making game a GObject.

 src/chess-game.vala  |    2 +-
 src/gnome-chess.vala |   10 ----------
 2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/chess-game.vala b/src/chess-game.vala
index 6d396d7..4817d20 100644
--- a/src/chess-game.vala
+++ b/src/chess-game.vala
@@ -1265,7 +1265,7 @@ public enum ChessRule
     BUG
 }
 
-public class ChessGame
+public class ChessGame : Object
 {
     public bool is_started;
     public ChessResult result;
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 639e6b2..b42dc2a 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -446,16 +446,6 @@ public class Application : Gtk.Application
                 warning ("Chess game has SetUp tag but no FEN tag");
         }
 
-        /* Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=732067 */
-        if (game != null)
-        {
-            game.started.disconnect (game_start_cb);
-            game.turn_started.disconnect (game_turn_cb);
-            game.moved.disconnect (game_move_cb);
-            game.undo.disconnect (game_undo_cb);
-            game.ended.disconnect (game_end_cb);
-        }
-
         game = new ChessGame (fen, moves);
 
         /*


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