[hitori] Use descriptive labels on board size change dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hitori] Use descriptive labels on board size change dialog
- Date: Tue, 17 Jun 2014 14:01:53 +0000 (UTC)
commit 8de8b2b6b5cd77683894b5d07cbcb93dcd6b5574
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Jun 6 11:01:30 2014 -0500
Use descriptive labels on board size change dialog
https://bugzilla.gnome.org/show_bug.cgi?id=731337
src/main.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index f53271a..98e573b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -293,9 +293,15 @@ hitori_set_board_size (Hitori *hitori, guint board_size)
GtkWidget *dialog = gtk_message_dialog_new (GTK_WINDOW (hitori->window),
GTK_DIALOG_MODAL,
GTK_MESSAGE_QUESTION,
- GTK_BUTTONS_YES_NO,
+ GTK_BUTTONS_NONE,
_("Do you want to stop the current game?"));
- if (gtk_dialog_run (GTK_DIALOG (dialog)) != GTK_RESPONSE_YES) {
+
+ gtk_dialog_add_buttons (GTK_DIALOG (dialog),
+ _("Keep _Playing"), GTK_RESPONSE_REJECT,
+ _("_New Game"), GTK_RESPONSE_ACCEPT,
+ NULL);
+
+ if (gtk_dialog_run (GTK_DIALOG (dialog)) != GTK_RESPONSE_ACCEPT) {
gtk_widget_destroy (dialog);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]