[gnome-chess/gnome-3-10] Pause the game when displaying Claim Draw dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/gnome-3-10] Pause the game when displaying Claim Draw dialog
- Date: Sun, 16 Feb 2014 02:20:42 +0000 (UTC)
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]