comparison src/gtkconv.c @ 10346:bbf738a0ce7b

[gaim-migrate @ 11560] More more MSN bug fixes from Felipe Contreras, and I fixed up the display of messages that failed to send so that it matches what you tried to send and doesn't have kittens with html entities and such. I added a GAIM_MESSAGE_RAW type in HEAD to make the display of such messages even more accurate, but I don't think such a cosmetic change, which would bump us to 1.2.0, is all that important for oldstatus. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 12 Dec 2004 17:37:36 +0000
parents 61852117568f
children 64bc206c7473
comparison
equal deleted inserted replaced
10345:2e01c503aa4f 10346:bbf738a0ce7b
5026 g_snprintf(buf, BUF_LONG, 5026 g_snprintf(buf, BUF_LONG,
5027 "<B><FONT %s COLOR=\"#777777\">%s</FONT></B>", 5027 "<B><FONT %s COLOR=\"#777777\">%s</FONT></B>",
5028 sml_attrib, message); 5028 sml_attrib, message);
5029 5029
5030 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), buf, 0); 5030 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), buf, 0);
5031 } 5031 } else if (flags & GAIM_MESSAGE_RAW) {
5032 else { 5032 g_snprintf(buf, BUF_LONG, "%s", message);
5033
5034 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), buf, 0);
5035 } else {
5033 char *new_message = g_memdup(message, length); 5036 char *new_message = g_memdup(message, length);
5034 char *who_escaped = (who ? g_markup_escape_text(who, strlen(who)) : g_strdup("")); 5037 char *who_escaped = (who ? g_markup_escape_text(who, strlen(who)) : g_strdup(""));
5035 5038
5036 if (flags & GAIM_MESSAGE_WHISPER) { 5039 if (flags & GAIM_MESSAGE_WHISPER) {
5037 str = g_malloc(1024); 5040 str = g_malloc(1024);
5077 if (scale > 1) { /* The colors are chosen to look fine on white; we should never have to darken */ 5080 if (scale > 1) { /* The colors are chosen to look fine on white; we should never have to darken */
5078 col.red = col.red * scale; 5081 col.red = col.red * scale;
5079 col.green = col.green * scale; 5082 col.green = col.green * scale;
5080 col.blue = col.blue * scale; 5083 col.blue = col.blue * scale;
5081 } 5084 }
5082 5085
5083 g_snprintf(color, sizeof(color), "#%02X%02X%02X", 5086 g_snprintf(color, sizeof(color), "#%02X%02X%02X",
5084 col.red >> 8, col.green >> 8, col.blue >> 8); 5087 col.red >> 8, col.green >> 8, col.blue >> 8);
5085 } else 5088 } else
5086 strcpy(color, RECV_COLOR); 5089 strcpy(color, RECV_COLOR);
5087 } 5090 }