/* gcc -o test-gtk test-gtk.c `pkg-config --libs --cflags gtk+-2.0`*/
#include <gtk/gtk.h>

#define BUTTON_SIZE     120

int main(int argc, char** argv)
{
  GtkWidget *main_window, *label;
  float xalign;

  gtk_init( &argc, &argv );
  main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  if (argc > 1)
  label = gtk_label_new("Text foo bar boo bar foo bar");
  else
  label = gtk_label_new("Text");

  gtk_widget_set_size_request(label, BUTTON_SIZE, -1);
  gtk_label_set_line_wrap_mode(GTK_LABEL(label), PANGO_WRAP_WORD);
	gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
  gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER);
  gtk_container_add((GtkContainer*) main_window, label);
  gtk_widget_show_all(main_window);
  gtk_main();
}

