changeset 8102:f6b915b0ce23

[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 <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 14 Jan 2004 19:26:44 +0000
parents a987d9729ebe
children a884604703ed
files src/gtknotify.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {