[gnome-nibbles/arnaudb/fix-bugs-3-34: 2/3] Fix end-of-game screen.



commit 4b260a5495805cb12691149311166517fa4585b4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Jun 10 17:41:18 2020 +0200

    Fix end-of-game screen.
    
    The view was hiding it.

 src/gnome-nibbles.vala | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 8d253ab..02e99cb 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -910,7 +910,6 @@ public class Nibbles : Gtk.Application
         overlay.add_overlay (label);
         overlay.add_overlay (button);
 
-        overlay.show ();
         overlay.grab_default ();
 
         Timeout.add (500, () => {
@@ -1000,8 +999,7 @@ public class Nibbles : Gtk.Application
             button.destroy ();
             msg_label.destroy ();
 
-            new_game_action.set_enabled (true);
-            pause_action.set_enabled (true);
+            view.show ();
 
             show_new_game_screen_cb ();
         });
@@ -1018,7 +1016,10 @@ public class Nibbles : Gtk.Application
 
         button.grab_focus ();
 
-        overlay.show ();
+        view.hide ();
+        new_game_action.set_enabled (false);
+        pause_action.set_enabled (false);
+        back_action.set_enabled (false);
     }
 
     private void help_cb ()


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