[tali] Fix sensitivity of undo move option



commit 94565aaad68ee0568ee44029c89d91ac77bb8a7f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Sep 15 15:47:35 2013 -0500

    Fix sensitivity of undo move option
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708100

 src/gyahtzee.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gyahtzee.c b/src/gyahtzee.c
index 10410ae..bbe2825 100644
--- a/src/gyahtzee.c
+++ b/src/gyahtzee.c
@@ -689,9 +689,7 @@ LoadDicePixmaps (void)
 void
 update_undo_sensitivity (void)
 {
-  /* Unfortunately, this does not change the state of undo button in app menu :( */
-  gboolean enable = UndoVisible ();
-  g_action_group_query_action (G_ACTION_GROUP (application), "undo", &enable, NULL, NULL, NULL, NULL);
+  g_simple_action_set_enabled (((GSimpleAction *) undo_action), UndoVisible ());
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]