diff 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
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Aug 25 23:17:01 2003 +0000
+++ b/src/gtkconv.c	Tue Aug 26 01:34:51 2003 +0000
@@ -427,7 +427,7 @@
 			strcpy(buf, buf2);
 		}
 
-		if (gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_bgcolor")) {
+		if (!(gc->flags & GAIM_CONNECTION_NO_BGCOLOR) && gaim_prefs_get_bool("/gaim/gtk/conversations/use_custom_bgcolor")) {
 			g_snprintf(buf2, limit,
 					   "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>",
 					   gtkconv->bg_color.red   / 256,
@@ -5429,6 +5429,9 @@
 
 		if (win != NULL)
 			gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE);
+
+		gtk_widget_set_sensitive(gtkconv->toolbar.bgcolor,
+				!(gc->flags & GAIM_CONNECTION_NO_BGCOLOR));
 	}
 
 	if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) {