#include <gtk/gtk.h>

static void
button_clicked_cb (GtkButton *button, gpointer data)
{
  GtkWidget *window = data;

  gtk_window_set_decorated (GTK_WINDOW (window),
                            !gtk_window_get_decorated (GTK_WINDOW (window)));
}

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

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL);

  button = gtk_button_new_with_label ("CSD/SSD");
  gtk_container_add (GTK_CONTAINER (window), button);
  g_signal_connect (button, "clicked", G_CALLBACK (button_clicked_cb), window);

  gtk_widget_show_all (window);

  gtk_main ();

  return 0;
}
