/* gcc gtk-bugs-01.c $(pkg-config --cflags --libs gtk+-3.0 glib-2.0) */

#include <gtk/gtk.h>

int
main (void)
{
  GtkWidget *dialog;

  gtk_init (NULL, NULL);

  dialog = gtk_file_chooser_dialog_new ("Choose some file",
                                        NULL,
                                        GTK_FILE_CHOOSER_ACTION_OPEN,
                                        "Close",
                                        GTK_RESPONSE_CLOSE,
                                        NULL);
  g_signal_connect (dialog, "destroy", G_CALLBACK (gtk_main_quit), NULL);

  gtk_widget_show_all (dialog);
  gtk_main ();

  return 0;
}
