Changeset 2448 for trunk/jons-gtk-gui

Show
Ignore:
Timestamp:
01/17/01 00:20:32 (8 years ago)
Author:
emojon
Message:

Forgot to add these files.

Location:
trunk/jons-gtk-gui/src
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jons-gtk-gui/src/convo.cpp

    r2445 r2448  
    405405    } 
    406406 
     407    // Use theme colors if it is black on white 
     408    bool bIgnoreBW = false; 
     409 
    407410    // Get the color that it was sent in if it's wanted 
    408411    if (recv_colors) 
     
    419422 
    420423        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        } 
    429441    } 
    430442    else 
     
    464476      case ICQ_CMDxSUB_MSG: 
    465477      { 
    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, 
    467481                        u_event->Text(), -1); 
    468482        gtk_text_insert(GTK_TEXT(c->text), 0, 0, 0, "\n", -1); 
  • trunk/jons-gtk-gui/src/option_window.cpp

    r2445 r2448  
    554554     
    555555    // Auto logon 
    556     licqConf.ReadNum("AutoLogon", auto_logon, 0); 
     556    licqConf.ReadNum("AutoLogon", auto_logon, ICQ_STATUS_OFFLINE); 
    557557} 
    558558