Changeset 2448 for trunk/jons-gtk-gui
- Timestamp:
- 01/17/01 00:20:32 (8 years ago)
- Location:
- trunk/jons-gtk-gui/src
- Files:
-
- 2 added
- 2 modified
-
convo.cpp (modified) (3 diffs)
-
event_description.cpp (added)
-
event_description.h (added)
-
option_window.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jons-gtk-gui/src/convo.cpp
r2445 r2448 405 405 } 406 406 407 // Use theme colors if it is black on white 408 bool bIgnoreBW = false; 409 407 410 // Get the color that it was sent in if it's wanted 408 411 if (recv_colors) … … 419 422 420 423 CICQColor *pIcqColor = u_event->Color(); 421 c->clrFore->red = pIcqColor->ForeRed() * 257; 422 c->clrFore->green = pIcqColor->ForeGreen() * 257; 423 c->clrFore->blue = pIcqColor->ForeBlue() * 257; 424 c->clrFore->pixel = 255; 425 c->clrBack->red = pIcqColor->BackRed() * 257; 426 c->clrBack->green = pIcqColor->BackGreen() * 257; 427 c->clrBack->blue = pIcqColor->BackBlue() * 257; 428 c->clrBack->pixel = 255; 424 425 if (pIcqColor->Foreground() == 0x00000000 && 426 pIcqColor->Background() == 0x00FFFFFF) 427 { 428 bIgnoreBW = true; 429 } 430 else 431 { 432 c->clrFore->red = pIcqColor->ForeRed() * 257; 433 c->clrFore->green = pIcqColor->ForeGreen() * 257; 434 c->clrFore->blue = pIcqColor->ForeBlue() * 257; 435 c->clrFore->pixel = 255; 436 c->clrBack->red = pIcqColor->BackRed() * 257; 437 c->clrBack->green = pIcqColor->BackGreen() * 257; 438 c->clrBack->blue = pIcqColor->BackBlue() * 257; 439 c->clrBack->pixel = 255; 440 } 429 441 } 430 442 else … … 464 476 case ICQ_CMDxSUB_MSG: 465 477 { 466 gtk_text_insert(GTK_TEXT(c->text), 0, c->clrFore, c->clrBack, 478 gtk_text_insert(GTK_TEXT(c->text), 0, 479 bIgnoreBW ? 0 : c->clrFore, 480 bIgnoreBW ? 0 : c->clrBack, 467 481 u_event->Text(), -1); 468 482 gtk_text_insert(GTK_TEXT(c->text), 0, 0, 0, "\n", -1); -
trunk/jons-gtk-gui/src/option_window.cpp
r2445 r2448 554 554 555 555 // Auto logon 556 licqConf.ReadNum("AutoLogon", auto_logon, 0);556 licqConf.ReadNum("AutoLogon", auto_logon, ICQ_STATUS_OFFLINE); 557 557 } 558 558
