changeset 2885:f72efa29c109

[gaim-migrate @ 2898] whoops committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 14 Dec 2001 18:34:06 +0000
parents 12309c877020
children 9571d6794ef3
files src/gtkimhtml.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Fri Dec 14 18:24:10 2001 +0000
+++ b/src/gtkimhtml.c	Fri Dec 14 18:34:06 2001 +0000
@@ -3061,18 +3061,18 @@
 			}
 				break;
 			case 42:	/* BODY (opt) */
-			{
-				gchar *bgcolor = gtk_imhtml_get_html_opt (tag, "BGCOLOR=");
-				if (bgcolor) {
-					GdkColor *tmp = gtk_imhtml_get_color (bgcolor);
-					g_free (bgcolor);
-					if (tmp) {
-						NEW_BIT (NEW_TEXT_BIT);
-						bg = tmp;
-						UPDATE_BG_COLORS;
+				if (!(options & GTK_IMHTML_NO_COLOURS)) {
+					gchar *bgcolor = gtk_imhtml_get_html_opt (tag, "BGCOLOR=");
+					if (bgcolor) {
+						GdkColor *tmp = gtk_imhtml_get_color (bgcolor);
+						g_free (bgcolor);
+						if (tmp) {
+							NEW_BIT (NEW_TEXT_BIT);
+							bg = tmp;
+							UPDATE_BG_COLORS;
+						}
 					}
 				}
-			}
 				break;
 			case 43:	/* A (opt) */
 			{