aboutsummaryrefslogtreecommitdiffstats
path: root/colors.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-28 18:42:28 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-28 18:42:28 +0000
commit6ffae25d358d977cf7aec2668cdbeb933748c5e8 (patch)
tree382f0b58fa828cbd9ac53eefed1e8292b58e336a /colors.h
parent18ecb7c3674e4c6499d5cb5f4877ede35ea223c3 (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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/colors.h b/colors.h
index 10de7fb6a0..d65aeb15cf 100644
--- a/colors.h
+++ b/colors.h
@@ -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;