diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-09 01:48:33 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-09 01:48:33 -0400 |
commit | e31bacf7be3dcc5295c89f8e929b53636976ebaa (patch) | |
tree | abb75fd028001254c86dbca91172c445565d2037 /tests/testfilechooser.c | |
parent | 911ae649311c0a8c955793d14a35324f85eaa4a4 (diff) | |
download | gtk+-e31bacf7be3dcc5295c89f8e929b53636976ebaa.tar.gz |
filechooser: Drop the ::current-folder-changed signal
This signal does not work on native file choosers,
and it exposes internals of the widget that should
not be public. And it is just not very interesting.
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r-- | tests/testfilechooser.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index d5eef8aeda..6e8359a92a 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -42,25 +42,6 @@ static GtkWidget *preview_image; static GtkFileChooserAction action; static void -print_current_folder (GtkFileChooser *chooser) -{ - GFile *cwd; - - cwd = gtk_file_chooser_get_current_folder (chooser); - if (cwd != NULL) - { - char *uri = g_file_get_uri (cwd); - g_print ("Current folder changed :\n %s\n", uri ? uri : "(null)"); - g_free (uri); - g_object_unref (cwd); - } - else - { - g_print ("Current folder changed :\n none\n"); - } -} - -static void print_selected (GtkFileChooser *chooser) { GListModel *files = gtk_file_chooser_get_files (chooser); @@ -345,8 +326,6 @@ main (int argc, char **argv) g_signal_connect (dialog, "selection-changed", G_CALLBACK (print_selected), NULL); - g_signal_connect (dialog, "current-folder-changed", - G_CALLBACK (print_current_folder), NULL); g_signal_connect (dialog, "response", G_CALLBACK (response_cb), &done); |