comparison src/dialogs.c @ 7707:17756d5dcfdf

[gaim-migrate @ 8352] WYSIWYGed links. They'll have tooltips, but they won't be clickable. That sounds like the right thing to do to me. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 03 Dec 2003 01:12:41 +0000
parents cf6a7939af78
children 3d9d3d21e600
comparison
equal deleted inserted replaced
7706:e6244f1a19a5 7707:17756d5dcfdf
932 showtext = gtk_entry_get_text(GTK_ENTRY(b->text)); 932 showtext = gtk_entry_get_text(GTK_ENTRY(b->text));
933 933
934 if (!strlen(showtext)) 934 if (!strlen(showtext))
935 showtext = urltext; 935 showtext = urltext;
936 936
937 g_snprintf(open_tag, 2048, "<A HREF=\"%s\">%s", urltext, showtext); 937 gtk_imhtml_insert_link(GTK_IMHTML(gtkconv->entry), urltext, showtext);
938 gaim_gtk_surround(gtkconv, open_tag, "</A>");
939 938
940 g_free(open_tag); 939 g_free(open_tag);
941 } 940 }
942 941
943 if (gtkconv->toolbar.link) { 942 if (gtkconv->toolbar.link) {