[gnome-chess] Undo and resign: mark insensitive when game over
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Undo and resign: mark insensitive when game over
- Date: Wed, 22 May 2013 20:24:05 +0000 (UTC)
commit 95a740777522c88b6921b4ef8043b60a99d2800d
Author: Michael Catanzaro <mike catanzaro gmail com>
Date: Tue May 21 19:28:07 2013 -0500
Undo and resign: mark insensitive when game over
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 835e120..166e79a 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -858,6 +858,9 @@ public class Application : Gtk.Application
private void game_end_cb (ChessGame game)
{
+ resign_menu.sensitive = resign_button.sensitive = false;
+ undo_menu.sensitive = undo_button.sensitive = false;
+
if (opponent_engine != null)
opponent_engine.stop ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]