[gnome-nibbles] Menu enabled end game/pause at init, disable them



commit c4d1178b6a8c5870c21c71b5ea9f8f41e1e464e8
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Sat Feb 15 16:16:03 2014 -0500

    Menu enabled end game/pause at init, disable them

 src/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 436d293..6a680cb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -659,6 +659,9 @@ activate (GtkApplication* app,
   pause_action          = G_SIMPLE_ACTION (g_action_map_lookup_action (G_ACTION_MAP (app) , "pause"));
   preferences_action    = G_SIMPLE_ACTION (g_action_map_lookup_action (G_ACTION_MAP (app) , "preferences"));
 
+  g_simple_action_set_enabled (end_game_action, FALSE);
+  g_simple_action_set_enabled (pause_action, FALSE);
+
   clutter_widget = gtk_clutter_embed_new ();
   stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter_widget));
 


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