summaryrefslogtreecommitdiff
path: root/eel/eel-stock-dialogs.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-27 21:35:53 +0100
committerPablo Barciela <[email protected]>2018-02-27 21:38:13 +0100
commitf0ab0d4cb1495b94d8a69ce85ce25c1df280fbb5 (patch)
tree6be6f197144a36c55a64a596e7296390e9d80438 /eel/eel-stock-dialogs.c
parent9778a3a06089fa6d0f3db29f51b6ff149c0befa3 (diff)
downloadcaja-f0ab0d4cb1495b94d8a69ce85ce25c1df280fbb5.tar.bz2
caja-f0ab0d4cb1495b94d8a69ce85ce25c1df280fbb5.tar.xz
avoid eel_run_simple_dialog with stock ids
Diffstat (limited to 'eel/eel-stock-dialogs.c')
-rw-r--r--eel/eel-stock-dialogs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c
index 752fbebb..e2bf9477 100644
--- a/eel/eel-stock-dialogs.c
+++ b/eel/eel-stock-dialogs.c
@@ -385,7 +385,12 @@ eel_run_simple_dialog (GtkWidget *parent, gboolean ignore_close_box,
{
break;
}
- gtk_dialog_add_button (GTK_DIALOG (dialog), button_title, response_id);
+
+ if (g_strcmp0 (button_title, "process-stop") == 0)
+ mate_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), button_title, response_id);
+ else
+ mate_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), button_title, response_id);
+
gtk_dialog_set_default_response (GTK_DIALOG (dialog), response_id);
response_id++;
}