
#include <gtk/gtk.h>

GtkWidget *window;
GtkWidget *label;


static gboolean
add_label_cb ()
{
  gtk_widget_show (label);
  gtk_container_add (GTK_CONTAINER (window), label);
  return FALSE;
}


void
main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

  label = gtk_label_new ("AAA <a href='c'>BBB</a> AAA");
  gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
  gtk_label_set_selectable (GTK_LABEL (label), TRUE);

  g_timeout_add (500, add_label_cb, NULL);

  gtk_widget_show_all (window);
  gtk_main ();
}





