comparison src/dialogs.c @ 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 8ab95f4c9800
children 618124fe3289
comparison
equal deleted inserted replaced
6873:155645d0f0aa 6874:bb70dc397782
1808 GtkWidget *label; 1808 GtkWidget *label;
1809 GtkWidget *text; 1809 GtkWidget *text;
1810 GtkWidget *bbox; 1810 GtkWidget *bbox;
1811 GtkWidget *sw; 1811 GtkWidget *sw;
1812 gint options = 0; 1812 gint options = 0;
1813 gchar *linkifyinated;
1814 va_list ap;
1813 char *more_info; 1815 char *more_info;
1814 va_list ap;
1815 1816
1816 struct info_dlg *b = find_info_dlg(gc, who); 1817 struct info_dlg *b = find_info_dlg(gc, who);
1817 if (!b && (away == 1)) 1818 if (!b && (away == 1))
1818 return; 1819 return;
1819 if (!b) { 1820 if (!b) {
1866 options ^= GTK_IMHTML_NO_COMMENTS; 1867 options ^= GTK_IMHTML_NO_COMMENTS;
1867 options ^= GTK_IMHTML_NO_TITLE; 1868 options ^= GTK_IMHTML_NO_TITLE;
1868 options ^= GTK_IMHTML_NO_NEWLINE; 1869 options ^= GTK_IMHTML_NO_NEWLINE;
1869 options ^= GTK_IMHTML_NO_SCROLL; 1870 options ^= GTK_IMHTML_NO_SCROLL;
1870 1871
1871 gtk_imhtml_append_text(GTK_IMHTML(b->text), info, -1, options); 1872 linkifyinated = linkify_text(info);
1873 gtk_imhtml_append_text(GTK_IMHTML(b->text), linkifyinated, -1, options);
1874 g_free(linkifyinated);
1872 1875
1873 va_start(ap, info); 1876 va_start(ap, info);
1874 while ((more_info = va_arg(ap, char *)) != NULL) { 1877 while ((more_info = va_arg(ap, char *)) != NULL) {
1875 gchar *linkifyinated = linkify_text(more_info); 1878 gchar *linkifyinated = linkify_text(more_info);
1876 gtk_imhtml_append_text(GTK_IMHTML(b->text), linkifyinated, -1, options); 1879 gtk_imhtml_append_text(GTK_IMHTML(b->text), linkifyinated, -1, options);