[iagno] Workaround signal misfires



commit 73f3e72b6aa5425e33cb4c1f41f30518c23f0ab1
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Sep 27 23:45:11 2013 -0500

    Workaround signal misfires
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708130

 src/iagno.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index 60945c5..94df388 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -345,8 +345,11 @@ public class Iagno : Gtk.Application
         }
     }
 
-    private void game_move_cb ()
+    private void game_move_cb (Game g)
     {
+        /* Bug #708130 */
+        return_if_fail (g == game);
+
         play_sound ("flip-piece");
 
         if (!game.can_move (game.current_color))


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