Skip to content

Commit f0ab0d4

Browse files
committed
avoid eel_run_simple_dialog with stock ids
1 parent 9778a3a commit f0ab0d4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

‎eel/eel-stock-dialogs.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,12 @@ eel_run_simple_dialog (GtkWidget *parent, gboolean ignore_close_box,
385385
{
386386
break;
387387
}
388-
gtk_dialog_add_button (GTK_DIALOG (dialog), button_title, response_id);
388+
389+
if (g_strcmp0 (button_title, "process-stop") == 0)
390+
mate_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), button_title, response_id);
391+
else
392+
mate_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), button_title, response_id);
393+
389394
gtk_dialog_set_default_response (GTK_DIALOG (dialog), response_id);
390395
response_id++;
391396
}

‎libcaja-private/caja-mime-actions.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ report_broken_symbolic_link (GtkWindow *parent_window, CajaFile *file)
737737
if (caja_file_is_in_trash (file))
738738
{
739739
eel_run_simple_dialog (GTK_WIDGET (parent_window), FALSE, GTK_MESSAGE_WARNING,
740-
prompt, detail, "gtk-cancel", NULL);
740+
prompt, detail, "process-stop", NULL);
741741
goto out;
742742
}
743743

‎src/caja-location-bar.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ drag_data_received_callback (GtkWidget *widget,
203203
GTK_MESSAGE_QUESTION,
204204
prompt,
205205
detail,
206-
"gtk-cancel", "gtk-ok",
206+
"process-stop", "gtk-ok",
207207
NULL) != 0 /* MATE_OK */;
208208

209209
g_free (prompt);

0 commit comments

Comments
 (0)