Ethereal-dev: Re: [ethereal-dev] colors

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Fri, 24 Sep 1999 22:53:12 -0700
> I'm running ethereal on the same workstation with a color hog program
> (HP OpenView).  Having to acknowledge (separately) the two errors in
> allocating "Black" and "White" colors gets a little old.  This brings up
> a couple of issues:
> 
> 1) any chance we could could pop an error window up, but not require
> acknowledgment (have it go away after a few seconds)?
> 
> 2) we may want to be able to run with a private color map

3) If we can't explicitly allocate black or white, could we try
"gdk_color_black()" and "gdk_color_white()" as a fallback? The X
documentation says that "BlackPixel()" and "WhitePixel()", which they
call, are *not* guaranteed to give colors that are actually black or
white on color hardware, but they're at least guaranteed to contrast
with each other.

(I'm not sure why the default colormap wouldn't have the preallocated
black and white actually *be* black and white, but....)

Alternatively, can you tell OpenView to allocate a private color map, so
it leaves boring old black and white available for everybody else?