aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.h
diff options
context:
space:
mode:
authorSake Blok <sake@euronet.nl>2007-11-10 15:18:49 +0000
committerSake Blok <sake@euronet.nl>2007-11-10 15:18:49 +0000
commit508e26806350629342aa144e9b173f93b1a64925 (patch)
treea166bf5aaa491f166493b890103a8480777728ff /color_filters.h
parent5057a3a763274b8b2299e65ce02557c682d9ce4c (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 :-) svn path=/trunk/; revision=23421
Diffstat (limited to 'color_filters.h')
-rw-r--r--color_filters.h3
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).
*