#include <gtk/gtk.h>

static 	GtkWidget *draw_area = 0;

gint timeout( gpointer data )
{
	gtk_widget_queue_draw( draw_area );

	return TRUE;
}

int main( int argc, char *argv[] )
{
	GtkWidget *main_widget = 0;

	gtk_init (&argc, &argv);
	
	main_widget = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	draw_area = gtk_drawing_area_new ();

	gtk_container_add( GTK_CONTAINER(main_widget), draw_area );

	gtk_drawing_area_size (GTK_DRAWING_AREA (draw_area), 200, 200);

	gtk_signal_connect (GTK_OBJECT (main_widget), "destroy",
			   GTK_SIGNAL_FUNC (gtk_exit), NULL);

	gtk_timeout_add( 250, timeout, 0 );

	gtk_widget_show_all(main_widget);
	gtk_main();

	return 0;
}
