changeset 6874:bb70dc397782

[gaim-migrate @ 7420] Links in AIM infos, away messages, and I guess other things should be clickable now. They should have been a while ago, but I overlooked something when I tried to do this the first time. There's a new Dido CD coming out at the end of this month. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 17 Sep 2003 04:42:42 +0000
parents 155645d0f0aa
children 7f81ac74d045
files src/dialogs.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Wed Sep 17 04:16:05 2003 +0000
+++ b/src/dialogs.c	Wed Sep 17 04:42:42 2003 +0000
@@ -1810,8 +1810,9 @@
 	GtkWidget *bbox;
 	GtkWidget *sw;
 	gint options = 0;
+	gchar *linkifyinated;
+	va_list ap;
 	char *more_info;
-	va_list ap;
 
 	struct info_dlg *b = find_info_dlg(gc, who);
 	if (!b && (away == 1))
@@ -1868,7 +1869,9 @@
 	options ^= GTK_IMHTML_NO_NEWLINE;
 	options ^= GTK_IMHTML_NO_SCROLL;
 
-	gtk_imhtml_append_text(GTK_IMHTML(b->text), info, -1, options);
+	linkifyinated = linkify_text(info);
+	gtk_imhtml_append_text(GTK_IMHTML(b->text), linkifyinated, -1, options);
+	g_free(linkifyinated);
 
 	va_start(ap, info);
 	while ((more_info = va_arg(ap, char *)) != NULL) {