[gnome-mahjongg] Added shuffle to game over dialogue
- From: Mario Wenzel <mariowenzel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg] Added shuffle to game over dialogue
- Date: Fri, 14 Feb 2014 16:06:36 +0000 (UTC)
commit 142cdfa1c01264db1fc640e9d26251e4db5b0082
Author: Mario Wenzel <maweki gmail com>
Date: Fri Feb 14 17:02:32 2014 +0100
Added shuffle to game over dialogue
src/gnome-mahjongg.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 4f465a5..22b7b12 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -312,10 +312,11 @@ public class Mahjongg : Gtk.Application
Gtk.MessageType.INFO,
Gtk.ButtonsType.NONE,
"%s", _("There are no more moves."));
- dialog.format_secondary_text (_("Each puzzle has at least one solution. You can undo your moves
and try and find the solution for a time penalty, restart this game or start an new one."));
+ dialog.format_secondary_text (_("Each puzzle has at least one solution. You can undo your moves
and try and find the solution for a time penalty, restart this game or start an new one. You can also
reshuffle the game which does not guarantee you a solution."));
dialog.add_buttons (_("_Undo"), Gtk.ResponseType.REJECT,
_("_Restart"), Gtk.ResponseType.CANCEL,
- _("_New game"), Gtk.ResponseType.ACCEPT);
+ _("_New game"), Gtk.ResponseType.ACCEPT,
+ _("_Shuffle"), Gtk.ResponseType.DELETE_EVENT);
dialog.set_default_response (Gtk.ResponseType.ACCEPT);
switch (dialog.run ())
@@ -323,6 +324,9 @@ public class Mahjongg : Gtk.Application
case Gtk.ResponseType.REJECT:
undo_cb ();
break;
+ case Gtk.ResponseType.DELETE_EVENT:
+ shuffle_cb ();
+ break;
case Gtk.ResponseType.CANCEL:
restart_game ();
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]