/* gcc `pkg-config --libs --cflags gtk+-2.0` -o testellipsise testellipsise.c */

#include <gtk/gtk.h>

#define TOOLITEM_WIDTH_CHARS    24

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

  gtk_init (&argc, &argv);

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

  label = gtk_label_new ("Signets");
  gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
  gtk_label_set_max_width_chars (GTK_LABEL (label), TOOLITEM_WIDTH_CHARS);
  gtk_container_add (GTK_CONTAINER (window), label);

  gtk_widget_show_all (window);
  gtk_main ();

  return 0;
}
