diff options
author | sake <sake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-11-10 15:18:49 +0000 |
---|---|---|
committer | sake <sake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-11-10 15:18:49 +0000 |
commit | 088ca305e3a2a383d01ea48cc9f46fd79f4191c2 (patch) | |
tree | a166bf5aaa491f166493b890103a8480777728ff /color_filters.h | |
parent | 6943ead3c9e5fac13381844ab6c2bab9355143d1 (diff) |
This patch makes it possible to disable individual coloring rules
without having to delete them. The patch has been tested on
Fedora-7 with GTK+ 1.2.10 and GTK+ 2.10.11.
Since I don't know how to use "strikethrough" in clists in GTK1
there is a little difference in how the disabled coloring rules
are displayed. In GTK2 they are striked through and in GTK1
they are shown in lightgrey on a white background.
Any info on how to use strikthrough in clists within GTK1 is more
than welcome :-)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23421 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'color_filters.h')
-rw-r--r-- | color_filters.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/color_filters.h b/color_filters.h index beceea5ea2..056115df17 100644 --- a/color_filters.h +++ b/color_filters.h @@ -34,6 +34,7 @@ typedef struct _color_filter { gchar *filter_text; /* text of the filter expression */ color_t bg_color; /* background color for packets that match */ color_t fg_color; /* foreground color for packets that match */ + gboolean disabled; /* set if the filter is disabled */ gboolean selected; /* set if the filter is selected in the color dialog box */ /* only used inside of color_filters.c */ @@ -149,7 +150,7 @@ gboolean color_filters_export(gchar *path, GSList *cfl, gboolean only_selected); */ color_filter_t *color_filter_new( const gchar *name, const gchar *filter_string, - color_t *bg_color, color_t *fg_color); + color_t *bg_color, color_t *fg_color, gboolean disabled); /** Delete a single color filter (g_free'ed). * |