Index: tests/testfilechooserbutton.c
===================================================================
--- tests/testfilechooserbutton.c	(revision 20261)
+++ tests/testfilechooserbutton.c	(working copy)
@@ -245,7 +245,18 @@
     }
 }
 
+static void
+chooser_file_set_cb (GtkFileChooserButton *chooser,
+		     gpointer        user_data)
+{
+  gchar *filename;
 
+  filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser));
+  g_message ("%s::file-set\n\tFile name: `%s'\nDone.\n",
+	     G_OBJECT_TYPE_NAME (chooser), filename ? filename : "NULL");
+  g_free (filename);
+}
+
 int
 main (int   argc,
       char *argv[])
@@ -313,6 +324,7 @@
   g_signal_connect (chooser, "selection-changed", G_CALLBACK (chooser_selection_changed_cb), NULL);
   g_signal_connect (chooser, "file-activated", G_CALLBACK (chooser_file_activated_cb), NULL);
   g_signal_connect (chooser, "update-preview", G_CALLBACK (chooser_update_preview_cb), NULL);
+  g_signal_connect (chooser, "file-set", G_CALLBACK (chooser_file_set_cb), NULL);
   gtk_container_add (GTK_CONTAINER (hbox), chooser);
 
   button = gtk_button_new_from_stock (GTK_STOCK_PROPERTIES);
@@ -344,6 +356,7 @@
   g_signal_connect (chooser, "selection-changed", G_CALLBACK (chooser_selection_changed_cb), NULL);
   g_signal_connect (chooser, "file-activated", G_CALLBACK (chooser_file_activated_cb), NULL);
   g_signal_connect (chooser, "update-preview", G_CALLBACK (chooser_update_preview_cb), NULL);
+  g_signal_connect (chooser, "file-set", G_CALLBACK (chooser_file_set_cb), NULL);
   gtk_container_add (GTK_CONTAINER (hbox), chooser);
 
   button = gtk_button_new_from_stock (GTK_STOCK_PROPERTIES);
