[gnome-chess] Use better text when prompting to save a completed game



commit b2bec840123c8c04098c3c5092c81efa0959543c
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Sat Jun 22 18:23:43 2013 -0500

    Use better text when prompting to save a completed game
    
    Otherwise it seems like you can keep playing the game
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702157

 src/gnome-chess.vala |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 0e607da..2b7430f 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1016,8 +1016,18 @@ public class Application : Gtk.Application
                                                             "<span weight=\"bold\" 
size=\"larger\">%s</span>",
                                                             _("Save this game before starting a new one?"));
             dialog.add_button (Gtk.Stock.CANCEL, Gtk.ResponseType.CANCEL);
-            dialog.add_button (_("_Abandon game"), Gtk.ResponseType.NO);
-            dialog.add_button (_("_Save game for later"), Gtk.ResponseType.YES);
+
+            if (game.result == ChessResult.IN_PROGRESS)
+            {
+                dialog.add_button (_("_Abandon game"), Gtk.ResponseType.NO);
+                dialog.add_button (_("_Save game for later"), Gtk.ResponseType.YES);
+            }
+            else
+            {
+                dialog.add_button (_("_Discard game"), Gtk.ResponseType.NO);
+                dialog.add_button (_("_Save game log"), Gtk.ResponseType.YES);
+            }
+
             var result = dialog.run ();
             dialog.destroy ();
             if (result == Gtk.ResponseType.CANCEL)


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