[five-or-more] Use an imperative verb for the new dialog's action
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more] Use an imperative verb for the new dialog's action
- Date: Wed, 17 Dec 2014 17:29:04 +0000 (UTC)
commit d9e14e4f1b70ca6bd0a9d6f5315b39325d3e68fe
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Dec 17 11:26:47 2014 -0600
Use an imperative verb for the new dialog's action
https://developer.gnome.org/hig/stable/dialogs.html
https://bugzilla.gnome.org/show_bug.cgi?id=739826
src/five-or-more.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/five-or-more.c b/src/five-or-more.c
index 2780ece..ff2585b 100644
--- a/src/five-or-more.c
+++ b/src/five-or-more.c
@@ -1303,9 +1303,14 @@ size_callback (GtkWidget * widget, gpointer data)
restart_game_dialog = gtk_message_dialog_new (GTK_WINDOW (pref_dialog),
GTK_MESSAGE_WARNING,
flags,
- GTK_BUTTONS_OK_CANCEL,
+ GTK_BUTTONS_NONE,
_("Are you sure you want to restart the game?"));
+ gtk_dialog_add_buttons (GTK_DIALOG (restart_game_dialog),
+ _("_Cancel"), GTK_RESPONSE_CANCEL,
+ _("_Restart"), GTK_RESPONSE_OK,
+ NULL);
+
gint result = gtk_dialog_run (GTK_DIALOG (restart_game_dialog));
gtk_widget_destroy (restart_game_dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]