summaryrefslogtreecommitdiff
path: root/tests/testfilechooser.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-08 10:12:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-09 00:50:03 -0400
commit73dcda460f75b6579c8e81a87a6f7d637841d18d (patch)
tree55c14c6965f4e31ab86c5e6630487b8d368ddb35 /tests/testfilechooser.c
parent0f8bc67a98c8436e02886fa13da9613d23033e4f (diff)
downloadgtk+-73dcda460f75b6579c8e81a87a6f7d637841d18d.tar.gz
tests: Stop using file chooser apis that are going away
gtk_file_chooser_[un]select_all are going away, stop using them.
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r--tests/testfilechooser.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index d3378d472a..eace90337c 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -262,18 +262,6 @@ kill_dependent (GtkWindow *win, GtkWidget *dep)
gtk_window_destroy (GTK_WINDOW (dep));
}
-static void
-notify_multiple_cb (GtkWidget *dialog,
- GParamSpec *pspec,
- GtkWidget *button)
-{
- gboolean multiple;
-
- multiple = gtk_file_chooser_get_select_multiple (GTK_FILE_CHOOSER (dialog));
-
- gtk_widget_set_sensitive (button, multiple);
-}
-
int
main (int argc, char **argv)
{
@@ -443,19 +431,6 @@ main (int argc, char **argv)
vbbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_window_set_child (GTK_WINDOW (control_window), vbbox);
- button = gtk_button_new_with_mnemonic ("_Select all");
- gtk_widget_set_sensitive (button, multiple);
- gtk_box_append (GTK_BOX (vbbox), button);
- g_signal_connect_swapped (button, "clicked",
- G_CALLBACK (gtk_file_chooser_select_all), dialog);
- g_signal_connect (dialog, "notify::select-multiple",
- G_CALLBACK (notify_multiple_cb), button);
-
- button = gtk_button_new_with_mnemonic ("_Unselect all");
- gtk_box_append (GTK_BOX (vbbox), button);
- g_signal_connect_swapped (button, "clicked",
- G_CALLBACK (gtk_file_chooser_unselect_all), dialog);
-
button = gtk_button_new_with_label ("set_current_folder (\"/nonexistent\")");
gtk_box_append (GTK_BOX (vbbox), button);
g_signal_connect (button, "clicked",