comparison src/gtkconv.c @ 6629:bdc448cf4cb6

[gaim-migrate @ 7153] Tim Ringenbach (marv_sf) writes: " This patch makes sending colors in yahoo work. It also makes a few changing to receiving them, and addresses most of the problems with that patch (which I think were all related to the fact it didn't do outgoing colors). It now handles bold, italic, underline, font face, font size, and font color in both directions. It disables the background color button if the prpl is yahoo (in a generic way), and farthermore strips out any <body> tags that the user might try to type anyway (the yahoo server purposely mangles them). It also adds a line to g_strescape some debug messages because I got tired them of changing the color of my terminal. I think I got all the bugs out. If you run with -d or open the debug window, it will show you what both conversion function returned, which should help track down any problems." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 26 Aug 2003 01:34:51 +0000
parents a4622f1fb5a1
children 314111e7b601
comparison
equal deleted inserted replaced
6628:31b39f6c2142 6629:bdc448cf4cb6
425 gtkconv->fg_color.green / 256, 425 gtkconv->fg_color.green / 256,
426 gtkconv->fg_color.blue / 256, buf); 426 gtkconv->fg_color.blue / 256, buf);
427 strcpy(buf, buf2); 427 strcpy(buf, buf2);
428 } 428 }
429 429
430 if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_bgcolor")) { 430 if (!(gc->flags & GAIM_CONNECTION_NO_BGCOLOR) && gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_bgcolor")) {
431 g_snprintf(buf2, limit, 431 g_snprintf(buf2, limit,
432 "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>", 432 "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>",
433 gtkconv->bg_color.red / 256, 433 gtkconv->bg_color.red / 256,
434 gtkconv->bg_color.green / 256, 434 gtkconv->bg_color.green / 256,
435 gtkconv->bg_color.blue / 256, buf); 435 gtkconv->bg_color.blue / 256, buf);
5427 5427
5428 gtk_widget_set_sensitive(gtkconv->send, TRUE); 5428 gtk_widget_set_sensitive(gtkconv->send, TRUE);
5429 5429
5430 if (win != NULL) 5430 if (win != NULL)
5431 gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE); 5431 gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE);
5432
5433 gtk_widget_set_sensitive(gtkconv->toolbar.bgcolor,
5434 !(gc->flags & GAIM_CONNECTION_NO_BGCOLOR));
5432 } 5435 }
5433 5436
5434 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { 5437 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) {
5435 if (gc == NULL) { 5438 if (gc == NULL) {
5436 gtk_widget_set_sensitive(gtkconv->info, FALSE); 5439 gtk_widget_set_sensitive(gtkconv->info, FALSE);