[zenity/jjardon/no_deprecated: 7/12] Do not use a stock answer for yes/no buttons



commit 6343ed964383d13fd3870ecf99bc36d1fa6e4fdb
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Mar 22 05:17:25 2015 +0000

    Do not use a stock answer for yes/no buttons

 src/msg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/msg.c b/src/msg.c
index 8d617f1..64ac02c 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -33,8 +33,8 @@ zenity_msg_construct_question_dialog (GtkWidget *dialog, ZenityMsgData *msg_data
 {
   GtkWidget *cancel_button, *ok_button;
   
-  cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_NO, GTK_RESPONSE_CANCEL);
-  ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_YES, GTK_RESPONSE_OK);
+  cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("_No"), GTK_RESPONSE_CANCEL);
+  ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Yes"), GTK_RESPONSE_OK);
 
   gtk_widget_grab_focus (msg_data->default_cancel ? cancel_button : ok_button);
 


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