diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-08-28 18:42:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-08-28 18:42:28 +0000 |
commit | 6ffae25d358d977cf7aec2668cdbeb933748c5e8 (patch) | |
tree | 382f0b58fa828cbd9ac53eefed1e8292b58e336a /colors.h | |
parent | 18ecb7c3674e4c6499d5cb5f4877ede35ea223c3 (diff) |
"CFILTERS_CONTAINS_FILTER()" should check for the presence of color
filters by checking whether the structure pointed to by "cf->colors" has
a non-zero "num_of_filters", not a non-null "color_filters" (the latter
points to the CList widget holding the list of filters, and may be
non-null even if there currently aren't any filters).
svn path=/trunk/; revision=602
Diffstat (limited to 'colors.h')
-rw-r--r-- | colors.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* colors.h * Definitions for color structures and routines * - * $Id: colors.h,v 1.1 1999/08/24 16:27:21 gram Exp $ + * $Id: colors.h,v 1.2 1999/08/28 18:42:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -39,7 +39,7 @@ #define MAX_COLOR_FILTER_STRING_LEN 256 #define CFILTERS_CONTAINS_FILTER(cf) \ - ((cf)->colors->color_filters != NULL) + ((cf)->colors->num_of_filters != 0) extern GdkColor proto_colors[MAXCOLORS]; extern GdkColormap* sys_cmap; |