Index: plugins/thunar-uca/thunar-uca-chooser.c =================================================================== --- plugins/thunar-uca/thunar-uca-chooser.c (wersja 26630) +++ plugins/thunar-uca/thunar-uca-chooser.c (kopia robocza) @@ -443,6 +443,8 @@ GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; + GtkWidget *dialog; + gint response; g_return_if_fail (THUNAR_UCA_IS_CHOOSER (uca_chooser)); @@ -450,11 +452,27 @@ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (uca_chooser->treeview)); if (gtk_tree_selection_get_selected (selection, &model, &iter)) { - /* remove the row from the model */ - thunar_uca_model_remove (THUNAR_UCA_MODEL (model), &iter); + dialog = gtk_message_dialog_new(GTK_WINDOW(uca_chooser), + GTK_DIALOG_MODAL, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_NONE, + "%s", "Are you sure that you want to delete this action"); + gtk_dialog_add_buttons(GTK_DIALOG(dialog), + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + GTK_STOCK_REMOVE, GTK_RESPONSE_YES, + NULL); + gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_YES); + response = gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); + + if (G_LIKELY (response == GTK_RESPONSE_YES)) + { + /* remove the row from the model */ + thunar_uca_model_remove (THUNAR_UCA_MODEL (model), &iter); - /* sync the model to persistent storage */ - thunar_uca_chooser_save (uca_chooser, THUNAR_UCA_MODEL (model)); + /* sync the model to persistent storage */ + thunar_uca_chooser_save (uca_chooser, THUNAR_UCA_MODEL (model)); + } } }