From 508e26806350629342aa144e9b173f93b1a64925 Mon Sep 17 00:00:00 2001 From: Sake Blok Date: Sat, 10 Nov 2007 15:18:49 +0000 Subject: 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 :-) svn path=/trunk/; revision=23421 --- color_filters.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'color_filters.h') 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). * -- cgit v1.2.3