[gnome-games] gnomine: Closing new game confirmation should keep current game



commit dc817980b87b2c5b36a528d7a92a11e72423dffa
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Feb 27 15:47:13 2012 +1100

    gnomine: Closing new game confirmation should keep current game

 gnomine/src/gnomine.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomine/src/gnomine.vala b/gnomine/src/gnomine.vala
index 7184d64..0084d5a 100644
--- a/gnomine/src/gnomine.vala
+++ b/gnomine/src/gnomine.vala
@@ -462,11 +462,11 @@ public class GnoMine : Gtk.Application
         {
             var dialog = new Gtk.MessageDialog (window, Gtk.DialogFlags.MODAL, Gtk.MessageType.QUESTION, Gtk.ButtonsType.NONE, "%s", _("Cancel current game?"));
             dialog.add_buttons (_("Start New Game"), Gtk.ResponseType.ACCEPT,
-                                _("Keep Current Game"), Gtk.ResponseType.REJECT,
+                                _("Keep Current Game"), Gtk.ResponseType.DELETE_EVENT,
                                 null);
             var result = dialog.run ();
             dialog.destroy ();
-            if (result == Gtk.ResponseType.REJECT)
+            if (result == Gtk.ResponseType.DELETE_EVENT)
                 return;
         }
 



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