comparison src/gtkconv.c @ 8536:008e4576dbfc

[gaim-migrate @ 9275] (10:51:01) datallah: LSchiere: I've got a fix for bug #925013 from bug #925013: " Since I set a contact's nick to a string that contained an ampersand I stopped receiving "new message" or "user is typing" type of notifications for that contact. Then I replaced the ampersand and now it works as expected." --Javier Kohen committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 31 Mar 2004 15:51:31 +0000
parents 7b0df53a409d
children fcb03dabbc53
comparison
equal deleted inserted replaced
8535:7b0df53a409d 8536:008e4576dbfc
4964 strcpy(color, "#868272"); 4964 strcpy(color, "#868272");
4965 } 4965 }
4966 4966
4967 if (*color != '\0') 4967 if (*color != '\0')
4968 { 4968 {
4969 char *label; 4969 char *html_title,*label;
4970
4971 html_title = gaim_escape_html(title);
4970 4972
4971 label = g_strdup_printf("<span color=\"%s\">%s</span>", 4973 label = g_strdup_printf("<span color=\"%s\">%s</span>",
4972 color, title); 4974 color, html_title);
4975 g_free(html_title);
4973 gtk_label_set_markup(GTK_LABEL(gtkconv->tab_label), label); 4976 gtk_label_set_markup(GTK_LABEL(gtkconv->tab_label), label);
4974 g_free(label); 4977 g_free(label);
4975 } 4978 }
4976 else 4979 else
4977 gtk_label_set_text(GTK_LABEL(gtkconv->tab_label), title); 4980 gtk_label_set_text(GTK_LABEL(gtkconv->tab_label), title);