summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-03-01 23:08:25 +0100
committerPablo Barciela <[email protected]>2018-03-01 23:08:25 +0100
commit7763ec98a616c8bb6300557525806d669987eba1 (patch)
tree6c2562e73a0e15b07670bc6adaab543700ad452d /eel
parentf0ab0d4cb1495b94d8a69ce85ce25c1df280fbb5 (diff)
downloadcaja-7763ec98a616c8bb6300557525806d669987eba1.tar.bz2
caja-7763ec98a616c8bb6300557525806d669987eba1.tar.xz
avoid eel_create_question_dialog with stock ids
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-stock-dialogs.c14
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;
}