[gtk/wip/baedert/for-master: 37/41] testfilechooser: Stop listening to ::selection-changed
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 37/41] testfilechooser: Stop listening to ::selection-changed
- Date: Sat, 10 Oct 2020 17:04:40 +0000 (UTC)
commit 58b4d9d9eddbb8a265ef66dcad3d9a15fce7560c
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 10 17:13:50 2020 +0200
testfilechooser: Stop listening to ::selection-changed
Doesn't exist anymore.
tests/testfilechooser.c | 22 ----------------------
1 file changed, 22 deletions(-)
---
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index 4d3fb13bd7..c06f636884 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -41,26 +41,6 @@ static GtkWidget *preview_image;
#endif
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,
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]