# HG changeset patch # User Luke Schierer # Date 1074108404 0 # Node ID f6b915b0ce23dc34bb9370bfe52259802800aa83 # Parent a987d9729ebe4c032239c6cf438a225874528c6f [gaim-migrate @ 8802] " This patch will linkify text shown by the call gaim_nofify_formatted. This is used in get info for a buddy. Note that it will onlu linkify text if the preference "Show URLs as links" is set." --Ka-Hing Cheung - bsponline committer: Tailor Script diff -r a987d9729ebe -r f6b915b0ce23 src/gtknotify.c --- a/src/gtknotify.c Wed Jan 14 17:19:34 2004 +0000 +++ b/src/gtknotify.c Wed Jan 14 19:26:44 2004 +0000 @@ -288,6 +288,7 @@ GSList *images = NULL; int options = 0; char label_text[2048]; + char *linked_text; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG); @@ -360,6 +361,12 @@ options ^= GTK_IMHTML_NO_SCROLL; gaim_gtk_find_images(text, &images); + if(gaim_prefs_get_bool("/gaim/gtk/conversations/show_urls_as_links")){ + linked_text = gaim_markup_linkify(text); + gtk_imhtml_append_text_with_images(GTK_IMHTML(imhtml), linked_text, + options, images); + g_free(linked_text); + } gtk_imhtml_append_text_with_images(GTK_IMHTML(imhtml), text, options, images); if (images) {