Do not use a stock answer for yes/no buttons
This commit is contained in:
parent
c1cf0abc21
commit
1a43253ac5
@ -33,8 +33,8 @@ zenity_msg_construct_question_dialog (GtkWidget *dialog, ZenityMsgData *msg_data
|
|||||||
{
|
{
|
||||||
GtkWidget *cancel_button, *ok_button;
|
GtkWidget *cancel_button, *ok_button;
|
||||||
|
|
||||||
cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_NO, GTK_RESPONSE_CANCEL);
|
cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("_No"), GTK_RESPONSE_CANCEL);
|
||||||
ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_YES, GTK_RESPONSE_OK);
|
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);
|
gtk_widget_grab_focus (msg_data->default_cancel ? cancel_button : ok_button);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user