[tali/gnome-3-8] Fix sensitivity of undo move option



commit 3b8dfaf58d81dc6d4b2adb53d85a9e310c68862e
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 548a4d9..1586169 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]