From 063ad28b1a06328e14ed72cc4b99cd4684efed12 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 21 Feb 2020 15:52:47 +0000 Subject: Remove overwrite confirmation machinery from GtkFileChooser Overwrite confirmation should not be optional, and it should not loop into application code to create their own dialog and user response. --- demos/node-editor/node-editor-window.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'demos') diff --git a/demos/node-editor/node-editor-window.c b/demos/node-editor/node-editor-window.c index 3bb2318654..491b956c41 100644 --- a/demos/node-editor/node-editor-window.c +++ b/demos/node-editor/node-editor-window.c @@ -461,7 +461,6 @@ save_cb (GtkWidget *button, gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); - gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE); GFile *cwd = g_file_new_for_path ("."); gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), cwd, NULL); @@ -583,7 +582,6 @@ export_image_cb (GtkWidget *button, gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); - gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE); g_signal_connect (dialog, "response", G_CALLBACK (export_image_response_cb), texture); gtk_widget_show (dialog); } -- cgit v1.2.1