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



commit 6b8e46f10863df34daa56d3ab4398d25b63142ab
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]