[gnome-chess] Pause the game when displaying Claim Draw dialog



commit 9b59d04195019ff70a3e4636c6e838d5ad17588f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Feb 15 20:18:42 2014 -0600

    Pause the game when displaying Claim Draw dialog

 src/gnome-chess.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 5e70780..f49323c 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1314,6 +1314,8 @@ public class Application : Gtk.Application
     {
         if (!game.current_player.claim_draw ())
         {
+            game.pause ();
+
             var dialog = new Gtk.MessageDialog.with_markup (window,
                                                             Gtk.DialogFlags.MODAL,
                                                             Gtk.MessageType.INFO,
@@ -1344,6 +1346,7 @@ public class Application : Gtk.Application
 
             dialog.run ();
             dialog.destroy ();
+            game.unpause ();
         }
     }
 


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