#include <glib.h>
#include <gtk/gtk.h>

#include <stdio.h>

void
on_response (GtkDialog *sender, int response_id, void *user_data)
{
  printf("Hello\n");
}

int
main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  GtkWidget *dialog = (GtkWidget *) gtk_file_chooser_dialog_new (NULL, NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL, NULL);
  g_signal_connect (dialog, "response", (GCallback) on_response, NULL);
  gtk_widget_show_all (dialog);
  gtk_main ();
  return 0;
}
