[gnome-klotski] Scores dialog: switch from Quit to Close button



commit 760d7055dce4d1d5331467b0ea7612b60460e1aa
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Nov 18 21:49:30 2013 -0600

    Scores dialog: switch from Quit to Close button
    
    Along with Mines, it makes sense to allow the user to see the final
    state of his game, if he wishes to admire his excellent block-moving
    work.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687015

 src/gnome-klotski.vala |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index 0caf1fb..333093c 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -775,9 +775,7 @@ public class Klotski : Gtk.Application
         history.add (entry);
         history.save ();
 
-        if (show_scores (entry, true) == Gtk.ResponseType.CLOSE)
-            window.destroy ();
-        else
+        if (show_scores (entry, true) == Gtk.ResponseType.OK)
             new_game (current_level);
     }
 
@@ -1033,7 +1031,7 @@ public class ScoreDialog : Gtk.Dialog
 
         if (show_quit)
         {
-            add_button (_("_Quit"), Gtk.ResponseType.CLOSE);
+            add_button (_("_Close"), Gtk.ResponseType.CLOSE);
             add_button (_("New Game"), Gtk.ResponseType.OK);
         }
         else


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