[gnome-games] gnomine: Disable pause and hint buttons when game isn't running



commit 2f35a1cfe732c79d55fa87fd791c3b350e70b0cc
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sun Feb 5 09:09:04 2012 -0500

    gnomine: Disable pause and hint buttons when game isn't running
    
    Hint button wasn't disabled when program was first started
    before new game was clicked
    Pause button wasn't disabled after game was lost
    
    https://bugzilla.gnome.org/show_bug.cgi?id=669408

 gnomine/src/gnomine.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomine/src/gnomine.vala b/gnomine/src/gnomine.vala
index 94acc46..2296778 100644
--- a/gnomine/src/gnomine.vala
+++ b/gnomine/src/gnomine.vala
@@ -351,7 +351,6 @@ public class GnoMine : Gtk.Application
 
     private void set_face_image (Gtk.Image face_image)
     {
-        hint_action.set_sensitive (face_image == cool_face_image || face_image == smile_face_image);
         face_button.set_icon_widget (face_image);
     }
 
@@ -575,6 +574,8 @@ public class GnoMine : Gtk.Application
     private void explode_cb (Minefield minefield)
     {
         set_face_image (sad_face_image);
+        hint_action.set_sensitive (false);
+        pause_action.set_sensitive (false);
         clock.stop ();
     }
 



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