summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/links.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-06 02:04:01 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-06 05:23:42 +0100
commit5783d3b68c6c14833595ed3bfe6daa0f3944e850 (patch)
tree15bb629607a4b013ed6dc9782be2489fffd19ba8 /demos/gtk-demo/links.c
parent712d5775318de9d74af586475cbec7f1b0c8246e (diff)
downloadgtk+-5783d3b68c6c14833595ed3bfe6daa0f3944e850.tar.gz
gtk-demo: Prove that links work fine now
Also, doodling is fun.
Diffstat (limited to 'demos/gtk-demo/links.c')
-rw-r--r--demos/gtk-demo/links.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/gtk-demo/links.c b/demos/gtk-demo/links.c
index ba3c27d806..d4f6dddb20 100644
--- a/demos/gtk-demo/links.c
+++ b/demos/gtk-demo/links.c
@@ -63,7 +63,13 @@ do_links (GtkWidget *do_widget)
label = gtk_label_new ("Some <a href=\"http://en.wikipedia.org/wiki/Text\""
"title=\"plain text\">text</a> may be marked up\n"
"as hyperlinks, which can be clicked\n"
- "or activated via <a href=\"keynav\">keynav</a>");
+ "or activated via <a href=\"keynav\">keynav</a>\n"
+ "and they work fine with other markup, like when\n"
+ "searching on <a href=\"http://www.google.com/\">"
+ "<span color=\"#0266C8\">G</span><span color=\"#F90101\">o</span>"
+ "<span color=\"#F2B50F\">o</span><span color=\"#0266C8\">g</span>"
+ "<span color=\"#00933B\">l</span><span color=\"#F90101\">e</span>"
+ "</a>.");
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
g_signal_connect (label, "activate-link", G_CALLBACK (activate_link), NULL);
gtk_container_add (GTK_CONTAINER (window), label);