--- a/src/gtkimhtml.c Sun Apr 03 22:44:03 2005 -0400
+++ b/src/gtkimhtml.c Mon Apr 04 07:20:18 2005 -0400
@@ -1351,6 +1351,7 @@
GtkTextMark *mark = gtk_text_buffer_get_insert(imhtml->text_buffer);
gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &iter, mark);
@@ -1360,21 +1361,32 @@
gaim_str_strip_cr(sd->data);
links = g_strsplit(sd->data, "\n", 0);
- while((link = *links++) != NULL){
+ while((link = links[i]) != NULL){ if(gaim_str_has_prefix(link, "http://") ||
gaim_str_has_prefix(link, "https://") ||
- gaim_str_has_prefix(link, "ftp://")){
- gtk_imhtml_insert_link(imhtml, mark, link, link);
+ gaim_str_has_prefix(link, "ftp://")) + gtk_imhtml_insert_link(imhtml, mark, link, label); /* Special reasons, aka images being put in via other tag, etc. */
/* ... don't pretend we handled it if we didn't */
gtk_drag_finish(dc, FALSE, FALSE, t);
case GTK_IMHTML_DRAG_HTML: