diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-12-19 07:28:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-12-19 07:28:36 +0000 |
commit | ef250527f89d8f2e0e4069c7d3ea5a80bffb76c9 (patch) | |
tree | c0985719886ab98c6178b786e2e1f3462e8c51c3 /colors.h | |
parent | 74d7c8c98091024e58ae1ed8f9d793ebe1b5542c (diff) |
Make the color filter list global, and have the code that applies
color filters check whether it's null to decide if there are any color
filters to apply.
Make "color_filter()" act on that list - there really aren't multiple
lists of color filters, there's only one list ("read_filters()" and
"write_filters()" acts only on one global list - and always has, as they
handled only one file).
svn path=/trunk/; revision=1359
Diffstat (limited to 'colors.h')
-rw-r--r-- | colors.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* colors.h * Definitions for color structures and routines * - * $Id: colors.h,v 1.8 1999/12/19 07:01:30 guy Exp $ + * $Id: colors.h,v 1.9 1999/12/19 07:28:35 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -56,6 +56,9 @@ typedef struct _color_filter { dfilter *c_colorfilter; } color_filter_t; +/* List of all color filters. */ +extern GSList *filter_list; + typedef struct _colfilter { GtkWidget *color_filters; gint num_of_filters; /* first num_of_filters rows filled */ @@ -64,7 +67,7 @@ typedef struct _colfilter { colfilter *colfilter_new(void); -color_filter_t *color_filter(colfilter *filter, gint n); +color_filter_t *color_filter(gint n); /* ===================== USER INTERFACE ====================== */ |