#include <gtk/gtk.h>

int main (void)
{
    gtk_init (0, 0);

    GtkWidget * window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    g_signal_connect (window, "destroy", (GCallback) gtk_main_quit, 0);

    GtkWidget * label = gtk_label_new ("Hello there. I am a string, and I am too long to fit in this window.");
    gtk_label_set_ellipsize ((GtkLabel *) label, PANGO_ELLIPSIZE_END);
    gtk_widget_set_size_request (label, 100, -1);
    gtk_container_add ((GtkContainer *) window, label);

    gtk_widget_show_all (window);
    gtk_main ();

    return 0;
}
