[gnome-chess/gnome-3-8] Undo and resign: mark insensitive when game over (cherry picked from commit 95a740777522c88b6921b4ef
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/gnome-3-8] Undo and resign: mark insensitive when game over (cherry picked from commit 95a740777522c88b6921b4ef
- Date: Wed, 22 May 2013 20:23:39 +0000 (UTC)
commit 41c68b359b5186c138f912f4a56d8b8c3a61c420
Author: Michael Catanzaro <mike catanzaro gmail com>
Date: Tue May 21 19:28:07 2013 -0500
Undo and resign: mark insensitive when game over
(cherry picked from commit 95a740777522c88b6921b4ef8043b60a99d2800d)
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 39e00b1..a019b1d 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -859,6 +859,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]