diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-21 15:52:47 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-22 15:22:06 +0000 |
commit | 063ad28b1a06328e14ed72cc4b99cd4684efed12 (patch) | |
tree | 84456855290319cccfd07f705f2096b611687002 /tests/testgtk.c | |
parent | d505573ee608f8f26fd02458030d1755fd3af8b6 (diff) | |
download | gtk+-063ad28b1a06328e14ed72cc4b99cd4684efed12.tar.gz |
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.
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r-- | tests/testgtk.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 98ee51798c..5e355f2b7b 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -5779,14 +5779,6 @@ native_multi_select_toggle (GtkWidget *checkbutton, } static void -native_overwrite_confirmation_toggle (GtkWidget *checkbutton, - GtkFileChooserNative *native) -{ - gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (native), - gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton))); -} - -static void native_visible_notify_show (GObject *object, GParamSpec *pspec, GtkWidget *show_button) @@ -6004,11 +5996,6 @@ create_native_dialogs (GtkWidget *widget) G_CALLBACK (native_multi_select_toggle), native); gtk_container_add (GTK_CONTAINER (box), check_button); - check_button = gtk_check_button_new_with_label ("Confirm overwrite"); - g_signal_connect (check_button, "toggled", - G_CALLBACK (native_overwrite_confirmation_toggle), native); - gtk_container_add (GTK_CONTAINER (box), check_button); - show_button = gtk_button_new_with_label ("Show"); hide_button = gtk_button_new_with_label ("Hide"); gtk_widget_set_sensitive (hide_button, FALSE); |