[gnome-games] mahjongg: Undo should not be sensitive after the game is won
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] mahjongg: Undo should not be sensitive after the game is won
- Date: Tue, 4 May 2010 22:05:10 +0000 (UTC)
commit 8d1fbd5904fe2702b165a90bd3551b334f6a0ec9
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Wed May 5 00:05:00 2010 +0200
mahjongg: Undo should not be sensitive after the game is won
mahjongg/mahjongg.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/mahjongg/mahjongg.c b/mahjongg/mahjongg.c
index 30d03cc..7b4a417 100644
--- a/mahjongg/mahjongg.c
+++ b/mahjongg/mahjongg.c
@@ -150,7 +150,6 @@ mahjongg_theme_warning (gchar * message)
}
/* At the end of the game, hint, shuffle and pause all become unavailable. */
-/* Undo and Redo are handled elsewhere. */
static void
update_menu_sensitivities (void)
{
@@ -165,7 +164,7 @@ update_menu_sensitivities (void)
gtk_action_set_sensitive (redo_action, FALSE);
} else {
gtk_action_set_sensitive (hint_action, moves_left > 0);
- gtk_action_set_sensitive (undo_action, undo_state);
+ gtk_action_set_sensitive (undo_action, undo_state && game_over != GAME_WON);
gtk_action_set_sensitive (redo_action, redo_state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]