#include <gtk/gtk.h>

void button_clicked_cb(GtkButton *button, gpointer user_data)
{
	GtkWidget *win;
	win = gtk_file_chooser_dialog_new("Title", NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
	gtk_dialog_run(GTK_DIALOG(win));
	gtk_widget_destroy(win);
}

int main(int argc, char **argv)
{
	GtkWidget *win;
	GtkWidget *button;

	gtk_init(&argc, &argv);

	win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	g_signal_connect(win, "delete-event", gtk_main_quit, NULL);
	
	button = gtk_button_new_with_label("Spawn FC");
	g_signal_connect(button, "clicked", G_CALLBACK(button_clicked_cb), NULL);
	gtk_container_add(GTK_CONTAINER(win), button);
	gtk_widget_show(button);

	gtk_widget_show(win);

	gtk_main();

	return 0;
}
