#include <gtk/gtk.h>

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

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

  gtk_init(&argc, &argv);

  button = gtk_button_new_with_label("test");
  g_signal_connect(button, "clicked", G_CALLBACK(button_clicked), NULL);

  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

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

  gtk_widget_show_all(window);

  gtk_main();

  return 0;
}
