summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-10-10 17:13:50 +0200
committerMatthias Clasen <mclasen@redhat.com>2020-10-14 15:06:12 -0400
commit958e4be86d1bdf044742f1537569b895a6063240 (patch)
treed88d9ceae4db5bcce2aff6d2d96718f19c73fcf0
parenteb345cd033593dbf10c8388039b33a2805fc2db9 (diff)
downloadgtk+-958e4be86d1bdf044742f1537569b895a6063240.tar.gz
testfilechooser: Stop listening to ::selection-changed
Doesn't exist anymore.
-rw-r--r--tests/testfilechooser.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index 4d3fb13bd7..c06f636884 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -42,26 +42,6 @@ static GtkWidget *preview_image;
static GtkFileChooserAction action;
static void
-print_selected (GtkFileChooser *chooser)
-{
- GListModel *files = gtk_file_chooser_get_files (chooser);
- guint i, n;
-
- g_print ("Selection changed :\n");
- n = g_list_model_get_n_items (files);
- for (i = 0; i < n; i++)
- {
- GFile *file = g_list_model_get_item (files, i);
- char *uri = g_file_get_uri (file);
- g_print (" %s\n", uri ? uri : "(null)");
- g_free (uri);
- g_object_unref (files);
- }
- g_print ("\n");
- g_object_unref (files);
-}
-
-static void
response_cb (GtkDialog *dialog,
int response_id,
gpointer data)
@@ -324,8 +304,6 @@ main (int argc, char **argv)
}
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
- g_signal_connect (dialog, "selection-changed",
- G_CALLBACK (print_selected), NULL);
g_signal_connect (dialog, "response",
G_CALLBACK (response_cb), &done);