Skip to content

Commit

Permalink
avoid eel_run_simple_dialog with stock ids
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Feb 27, 2018
1 parent 9778a3a commit f0ab0d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion eel/eel-stock-dialogs.c
Expand Up @@ -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++;
}
Expand Down
2 changes: 1 addition & 1 deletion libcaja-private/caja-mime-actions.c
Expand Up @@ -737,7 +737,7 @@ report_broken_symbolic_link (GtkWindow *parent_window, CajaFile *file)
if (caja_file_is_in_trash (file))
{
eel_run_simple_dialog (GTK_WIDGET (parent_window), FALSE, GTK_MESSAGE_WARNING,
prompt, detail, "gtk-cancel", NULL);
prompt, detail, "process-stop", NULL);
goto out;
}

Expand Down
2 changes: 1 addition & 1 deletion src/caja-location-bar.c
Expand Up @@ -203,7 +203,7 @@ drag_data_received_callback (GtkWidget *widget,
GTK_MESSAGE_QUESTION,
prompt,
detail,
"gtk-cancel", "gtk-ok",
"process-stop", "gtk-ok",
NULL) != 0 /* MATE_OK */;

g_free (prompt);
Expand Down

0 comments on commit f0ab0d4

Please sign in to comment.