#include <gtk/gtk.h>

void
button_clicked (GtkButton *button, gpointer data)
{
	gtk_widget_set_sensitive (button, FALSE);
	gtk_widget_set_sensitive (button, TRUE);
}

int
main (int argc, char *argv[])
{
	GtkWidget *window, *button;

	gtk_init (&argc, &argv);

	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	button = gtk_button_new_from_stock ("gtk-close");

	gtk_container_set_border_width (GTK_CONTAINER (window), 20);
	gtk_container_add (GTK_CONTAINER (window), button);

	g_signal_connect (button, "clicked", button_clicked, NULL);

	gtk_widget_show_all (window);

	gtk_main ();
}
