comparison 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
comparison
equal deleted inserted replaced
696:97b75ed155b0 697:c7c0d2590681
80 80
81 GdkPixmap *dark_icon_pm = NULL; 81 GdkPixmap *dark_icon_pm = NULL;
82 GdkBitmap *dark_icon_bm = NULL; 82 GdkBitmap *dark_icon_bm = NULL;
83 83
84 char fontface[64]; 84 char fontface[64];
85 int bgcolor = 0; 85 GdkColor bgcolor;
86 int fgcolor = 0; 86 GdkColor fgcolor;
87 87
88 void check_everything(GtkWidget *entry); 88 void check_everything(GtkWidget *entry);
89 gboolean keypress_callback(GtkWidget *entry, GdkEventKey *event, struct conversation *c); 89 gboolean keypress_callback(GtkWidget *entry, GdkEventKey *event, struct conversation *c);
90 90
91 /*------------------------------------------------------------------------*/ 91 /*------------------------------------------------------------------------*/
580 g_snprintf(buf2, BUF_LONG, "<FONT FACE=\"%s\">%s</FONT>", c->fontface, buf); 580 g_snprintf(buf2, BUF_LONG, "<FONT FACE=\"%s\">%s</FONT>", c->fontface, buf);
581 strcpy(buf, buf2); 581 strcpy(buf, buf2);
582 } 582 }
583 583
584 if (font_options & OPT_FONT_FGCOL) { 584 if (font_options & OPT_FONT_FGCOL) {
585 g_snprintf(buf2, BUF_LONG, "<FONT COLOR=\"#%x\">%s</FONT>", c->fgcol, buf); 585 g_snprintf(buf2, BUF_LONG, "<FONT COLOR=\"#%02X%02X%02X\">%s</FONT>", c->fgcol.red, c->fgcol.green, c->fgcol.blue, buf);
586 strcpy(buf, buf2); 586 strcpy(buf, buf2);
587 } 587 }
588 588
589 if (font_options & OPT_FONT_BGCOL) { 589 if (font_options & OPT_FONT_BGCOL) {
590 g_snprintf(buf2, BUF_LONG, "<BODY BGCOLOR=\"#%x\">%s</BODY>", c->bgcol, buf); 590 g_snprintf(buf2, BUF_LONG, "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>", c->bgcol.red, c->bgcol.green, c->bgcol.blue, buf);
591 strcpy(buf, buf2); 591 strcpy(buf, buf2);
592 } 592 }
593 593
594 #ifdef GAIM_PLUGINS 594 #ifdef GAIM_PLUGINS
595 { 595 {