
#include <gtk/gtk.h>


int main( int argc, char *argv[]) {

  GtkWidget *window;
  GtkWidget *label;

  gtk_init(&argc, &argv);

  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title(GTK_WINDOW(window), "GTK Resize Test");

  if (GTK_MAJOR_VERSION == 3) {
	  label = gtk_label_new("GTK3");
  } else {
	  label = gtk_label_new("GTK2");
  }
  gtk_container_add(GTK_CONTAINER(window), label);

  g_signal_connect_swapped(G_OBJECT(window), "destroy",
        G_CALLBACK(gtk_main_quit), NULL);

  gtk_widget_show_all(window);
  gtk_window_resize(GTK_WINDOW(window), 400, 400);

  gtk_main();

  return 0;
}

