diff options
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-stock-dialogs.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c index e2bf9477..97597e09 100644 --- a/eel/eel-stock-dialogs.c +++ b/eel/eel-stock-dialogs.c @@ -586,6 +586,18 @@ eel_create_question_dialog (const char *primary_text, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, parent); - gtk_dialog_add_buttons (dialog, answer_1, response_1, answer_2, response_2, NULL); + + if (g_strcmp0 (answer_1, "process-stop") == 0) + mate_dialog_add_button (dialog, _("_Cancel"), answer_1, response_1); + else + gtk_dialog_add_button (dialog, answer_1, response_1); + + if (g_strcmp0 (answer_2, "gtk-ok") == 0) + mate_dialog_add_button (dialog, _("_OK"), answer_2, response_2); + else if (g_strcmp0 (answer_2, "edit-clear") == 0) + mate_dialog_add_button (dialog, _("_Clear"), answer_2, response_2); + else + gtk_dialog_add_button (dialog, answer_2, response_2); + return dialog; } |