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



commit 848b526b9e69c0985ed98a0df3fb771bb23910dd
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 f74021c..71da2ad 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1239,6 +1239,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,
@@ -1269,6 +1271,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]