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

#include <gtk/gtk.h>

gint
main (gint argc, gchar *argv[])
{
  GtkWidget *dialog;
  GtkWidget *label;

  /* Init */
  gtk_init (&argc, &argv);

  /* Create dialog */
  dialog = gtk_dialog_new ();
  gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
  gtk_window_set_title (GTK_WINDOW (dialog), "Test Case");
  g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
  g_signal_connect (dialog, "destroy", G_CALLBACK (gtk_main_quit), NULL);

  /* Labels */
  label = gtk_label_new ("label 1");
  gtk_label_set_selectable (GTK_LABEL (label), TRUE);
  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0);
  gtk_widget_show (label);

  label = gtk_label_new (NULL);
  gtk_label_set_markup (GTK_LABEL (label),
      "Hello <a href=\"http://www.test.com\">www.test.com</a> hello");
  gtk_label_set_selectable (GTK_LABEL (label), TRUE);
  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0);
  gtk_widget_show (label);

  /* Let's go */  
  gtk_widget_show (dialog);
  gtk_main ();
}
