Ethereal-dev: Re: [Ethereal-dev] TCP tools and 8-bit X/window displays

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 7 Jan 2003 18:26:58 -0800
On Tue, Jan 07, 2003 at 12:58:06PM -0800, Guy Harris wrote:
> You'd still want to check the success of "gdk_colormap_alloc_color()"
> when allocating the various shades of gray - and, for that matter, when
> parsing the colors (even if one cannot see how a call can fail, one
> should check for its success anyway, if for no other reason than to let
> the user know that it failed; one can often be surprised by calls that
> "cannot fail" failing for reasons one didn't anticipate).

I've checked in some code to do those checks.  (I tested it with a
modified version of the code that tried to parse a color name not found
in, I suspect, any rgb.txt files, and it popped up the warning dialog
boxes that it was supposed to.)