/* cc `pkg-config --cflags --libs gtk+-2.0` main.c */

#include <gtk/gtklabel.h>
#include <gtk/gtkmain.h>
#include <gtk/gtkscrolledwindow.h>
#include <gtk/gtkwindow.h>


int main(int argc, char *argv[])
{
  gtk_init(&argc, &argv);
  
  {
    GtkWidget * const window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    GtkWidget * const label = gtk_label_new
      (
       "The GNOME project has built a complete, free and easy-to-use desktop\n"
       "environment for the user, as well as a powerful application framework\n"
       "for the software developer.\n"
       "\n"
       "GNOME is part of the GNU project, and is free software (some times\n"
       "referred to as open source software). It is included in almost every\n"
       "BSD and GNU/Linux distribution and works on many other UNIX systems.\n"
       "\n"
       "Check in on the GNOME 2.0 development process, and get involved today.\n"
       "\n"
       "The GNOME project has built a complete, free and easy-to-use desktop\n"
       "environment for the user, as well as a powerful application framework\n"
       "for the software developer.\n"
       "\n"
       "GNOME is part of the GNU project, and is free software (some times\n"
       "referred to as open source software). It is included in almost every\n"
       "BSD and GNU/Linux distribution and works on many other UNIX systems.\n"
       "\n"
       "Check in on the GNOME 2.0 development process, and get involved today.\n"
       "\n"
       "The GNOME project has built a complete, free and easy-to-use desktop\n"
       "environment for the user, as well as a powerful application framework\n"
       "for the software developer.\n"
       "\n"
       "GNOME is part of the GNU project, and is free software (some times\n"
       "referred to as open source software). It is included in almost every\n"
       "BSD and GNU/Linux distribution and works on many other UNIX systems.\n"
       "\n"
       "Check in on the GNOME 2.0 development process, and get involved today.\n"
       );
    
    GtkWidget * const scroll = gtk_scrolled_window_new(0, 0);
    
    gtk_label_set_selectable(GTK_LABEL(label), TRUE);      
    gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scroll), label);
    gtk_container_add(GTK_CONTAINER(window), scroll);
    
    gtk_widget_show(label);
    gtk_widget_show(scroll);
    gtk_window_set_default_size(GTK_WINDOW(window), 150, 150);
    gtk_widget_show(window);
  }
  
  gtk_main();
  return 0;
}
