[gnome-nibbles] Properly change the state of the pause action



commit 5fa8b7a141f4af5a104f58231df6ab7cbc15f638
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Mar 18 22:08:05 2014 -0500

    Properly change the state of the pause action
    
    We were failing to change the state of the pause action on state change
    requests, so the Pause item in the app menu was forever set to false.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724439

 src/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 30fd2a0..6aad853 100644
--- a/src/main.c
+++ b/src/main.c
@@ -162,6 +162,7 @@ change_pause_state (GSimpleAction *action,
     dummy_id = g_timeout_add (500, (GSourceFunc) new_game_2_cb, NULL);
   }
 
+  g_simple_action_set_state (action, g_variant_new_boolean (is_paused));
 }
 
 


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