aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-27 02:19:51 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-27 02:19:51 +0000
commita277b73c5425e4ff29a7007bd15950a2dada4214 (patch)
tree1b0905c12f857ad0bfd1a7897416bf9768648546 /color_filters.c
parent79acf759c64ec04e4ecd6daa1ae858964ca86013 (diff)
add a new checkitem "Colorize Packet List" into the View menu
keep it's setting in the recent file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13929 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'color_filters.c')
-rw-r--r--color_filters.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/color_filters.c b/color_filters.c
index cfa0e602df..ef72946dcd 100644
--- a/color_filters.c
+++ b/color_filters.c
@@ -51,6 +51,9 @@ static gboolean read_global_filters(void);
GSList *color_filter_list = NULL;
GSList *removed_filter_list = NULL;
+/* Color Filters can en-/disabled. */
+gboolean filters_enabled = TRUE;
+
/* Remove the specified filter from the list of existing color filters,
* and add it to the list of removed color filters.
* This way, unmarking and marking a packet which matches a now removed
@@ -140,7 +143,13 @@ prime_edt(gpointer data, gpointer user_data)
gboolean
color_filters_used(void)
{
- return color_filter_list != NULL;
+ return color_filter_list != NULL && filters_enabled;
+}
+
+void
+color_filters_enable(gboolean enable)
+{
+ filters_enabled = enable;
}