// build by gcc -o test3 -g -O0 test3.c `pkg-config --libs --cflags gtk+-3.0`

#include <gtk/gtk.h>

GtkWidget *window;

/* Another callback */
static void destroy( GtkWidget *widget,
                     gpointer   data )
{
    gtk_main_quit ();
}

int main( int   argc,
          char *argv[] )
{
    gtk_init (&argc, &argv);

    /* create a new window */
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

    gtk_window_move(window,0,0);
    gtk_window_resize(window,100,100);

    g_signal_connect (window, "destroy",
          G_CALLBACK (destroy), NULL);

    gtk_widget_show_all (GTK_WIDGET(window));
    while(gtk_main_iteration()) {
	int i = 0;
	for (i = 0; i < 10000; i++)
	    printf("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\n");
    }

    return 0;
}
