diff src/conversation.c @ 697:c7c0d2590681

[gaim-migrate @ 707] fixed a bug where default colors weren't always properly assigned committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Wed, 16 Aug 2000 04:30:32 +0000
parents 6b1345121dd3
children b2ab04e04194
line wrap: on
line diff
--- a/src/conversation.c	Wed Aug 16 03:16:03 2000 +0000
+++ b/src/conversation.c	Wed Aug 16 04:30:32 2000 +0000
@@ -82,8 +82,8 @@
 GdkBitmap *dark_icon_bm = NULL;
 
 char fontface[64];
-int bgcolor = 0;
-int fgcolor = 0;
+GdkColor bgcolor;
+GdkColor fgcolor;
 
 void check_everything(GtkWidget *entry);
 gboolean keypress_callback(GtkWidget *entry, GdkEventKey *event,  struct conversation *c);
@@ -582,12 +582,12 @@
         }
 
 	if (font_options & OPT_FONT_FGCOL) {
-		g_snprintf(buf2, BUF_LONG, "<FONT COLOR=\"#%x\">%s</FONT>", c->fgcol, buf);
+		g_snprintf(buf2, BUF_LONG, "<FONT COLOR=\"#%02X%02X%02X\">%s</FONT>", c->fgcol.red, c->fgcol.green, c->fgcol.blue, buf);
 		strcpy(buf, buf2);
 	}
 
 	if (font_options & OPT_FONT_BGCOL) {
-		g_snprintf(buf2, BUF_LONG, "<BODY BGCOLOR=\"#%x\">%s</BODY>", c->bgcol, buf);
+		g_snprintf(buf2, BUF_LONG, "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>", c->bgcol.red, c->bgcol.green, c->bgcol.blue, buf);
 		strcpy(buf, buf2);
 	}