Skip to content
Permalink
Browse files

avoid eel_run_simple_dialog with stock ids

  • Loading branch information...
sc0w committed Feb 27, 2018
1 parent 9778a3a commit f0ab0d4cb1495b94d8a69ce85ce25c1df280fbb5
Showing with 8 additions and 3 deletions.
  1. +6 −1 eel/eel-stock-dialogs.c
  2. +1 −1 libcaja-private/caja-mime-actions.c
  3. +1 −1 src/caja-location-bar.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++;
}
@@ -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;
}

@@ -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);

0 comments on commit f0ab0d4

Please sign in to comment.
You can’t perform that action at this time.