gnome-games r7966 - in branches/gnome-2-24: gnomine gnotravex



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

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

Modified:
   branches/gnome-2-24/gnomine/gnomine.c
   branches/gnome-2-24/gnotravex/gnotravex.c

Modified: branches/gnome-2-24/gnomine/gnomine.c
==============================================================================
--- branches/gnome-2-24/gnomine/gnomine.c	(original)
+++ branches/gnome-2-24/gnomine/gnomine.c	Wed Oct  8 07:40:41 2008
@@ -282,6 +282,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: branches/gnome-2-24/gnotravex/gnotravex.c
==============================================================================
--- branches/gnome-2-24/gnotravex/gnotravex.c	(original)
+++ branches/gnome-2-24/gnotravex/gnotravex.c	Wed Oct  8 07:40:41 2008
@@ -1644,6 +1644,12 @@
 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);
   make_buffer (space);



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