#include <gtk/gtk.h>

static void
button_clicked_cb (GtkWidget *button,
    gpointer user_data)
{
  gtk_widget_set_sensitive (button, FALSE);
}

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

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

  button = gtk_button_new_with_label ("Go ahead, make my day!");
  gtk_container_add (GTK_CONTAINER (window), button);
  gtk_widget_show (button);

  g_signal_connect (button, "clicked",
      G_CALLBACK (button_clicked_cb), NULL);

  gtk_widget_show (window);

  gtk_main ();

  return 0;
}
