gnome-games r7967 - in trunk: gnomine gnotravex



Author: rancell
Date: Wed Oct  8 07:41:02 2008
New Revision: 7967
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7967&view=rev

Log:
Reset pause menu when starting new game (gnomine, gnotravex) (Bug #552391)

Modified:
   trunk/gnomine/gnomine.c
   trunk/gnotravex/gnotravex.c

Modified: trunk/gnomine/gnomine.c
==============================================================================
--- trunk/gnomine/gnomine.c	(original)
+++ trunk/gnomine/gnomine.c	Wed Oct  8 07:41:02 2008
@@ -283,6 +283,8 @@
 
   set_flabel (GTK_MINEFIELD (mfield));
 
+  gtk_action_set_visible (pause_action, TRUE);
+  gtk_action_set_visible (resume_action, FALSE);
   gtk_widget_hide (resume_container);
   gtk_widget_show (mfield_container);
 }

Modified: trunk/gnotravex/gnotravex.c
==============================================================================
--- trunk/gnotravex/gnotravex.c	(original)
+++ trunk/gnotravex/gnotravex.c	Wed Oct  8 07:41:02 2008
@@ -1649,6 +1649,12 @@
 void
 new_game (){
   gchar *str;
+    
+  /* Reset pause menu */
+  gtk_action_set_visible(pause_action, TRUE);
+  gtk_action_set_sensitive(pause_action, TRUE);
+  gtk_action_set_visible(resume_action, FALSE);
+  gtk_action_set_sensitive(resume_action, FALSE);
 
   new_board (size);
   gtk_widget_freeze_child_notify (space);



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