diff options
author | Mathias Hasselmann <hasselmm@src.gnome.org> | 2008-01-12 11:10:14 +0000 |
---|---|---|
committer | Mathias Hasselmann <hasselmm@src.gnome.org> | 2008-01-12 11:10:14 +0000 |
commit | f5589f2e80b0a13e8b0648d3a342e09a2ac908c3 (patch) | |
tree | 6d297fa31e1ffe986293fbe0bd6206f7a8904efa /gtk/gtkaboutdialog.c | |
parent | ce5fc4e71ea5a2b47c593dd8a4e73480a4455e23 (diff) | |
download | gtk+-f5589f2e80b0a13e8b0648d3a342e09a2ac908c3.tar.gz |
Print angle brackets arround e-mail addresses in the about dialog
(#409520, Mariano Suárez-Alvarez).
* gtk/gtkaboutdialog.c: Keep e-mail brackets in add_credits_page().
svn path=/trunk/; revision=19354
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r-- | gtk/gtkaboutdialog.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 540546aab7..f57a474e57 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -1966,21 +1966,23 @@ add_credits_page (GtkAboutDialog *about, gchar *link; const gchar *link_type; GtkTextTag *tag; - - gtk_text_buffer_insert_at_cursor (buffer, q0, q1 - q0); - gtk_text_buffer_get_end_iter (buffer, &end); - - q0 = q2; - if (*q1 == '<') + if (*q1 == '<') { + gtk_text_buffer_insert_at_cursor (buffer, q0, (q1 - q0) + 1); + gtk_text_buffer_get_end_iter (buffer, &end); q1++; - q0++; link_type = I_("email"); } - else - link_type = I_("url"); - + else + { + gtk_text_buffer_insert_at_cursor (buffer, q0, q1 - q0); + gtk_text_buffer_get_end_iter (buffer, &end); + link_type = I_("url"); + } + + q0 = q2; + link = g_strndup (q1, q2 - q1); if (g_slist_find_custom (priv->visited_links, link, (GCompareFunc)strcmp)) |