aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2009-06-30 18:05:04 +0000
committerStephen Fisher <steve@stephen-fisher.com>2009-06-30 18:05:04 +0000
commite6d0686f7b1291b420618d768d964d00b83cb452 (patch)
tree3aaafc6ab6cc9e1bda6c0b3103c5279e9eda2fa4 /color_filters.c
parent92446c8005109d31ad842b29b8b480f7e69d2843 (diff)
Introduce experimental new feature: GTK2 tree view based packet list
To use the GTK2 based packet list, define NEW_PACKET_LIST when compiling. To do this with gcc, set the environment variable CPPFLAGS to "-DNEW_PACKET_LIST" and re-run configure. Many features do not yet work. This work began with prototypes by Ulf quite a while back. I've put quite a bit of work into this so far and as discussed with a few of the core team members at Sharkfest09 and it was decided that it would be best to commit what I have so far to allow others to help work on this. svn path=/trunk/; revision=28892
Diffstat (limited to 'color_filters.c')
-rw-r--r--color_filters.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/color_filters.c b/color_filters.c
index 6d72c1928e..4076e22203 100644
--- a/color_filters.c
+++ b/color_filters.c
@@ -431,6 +431,7 @@ color_filters_prime_edt(epan_dissect_t *edt)
g_slist_foreach(color_filter_list, prime_edt, edt);
}
+#ifndef NEW_PACKET_LIST
/* Colorize a single packet of the packet list */
color_filter_t *
color_filters_colorize_packet(gint row, epan_dissect_t *edt)
@@ -448,7 +449,9 @@ color_filters_colorize_packet(gint row, epan_dissect_t *edt)
(colorf->c_colorfilter != NULL) &&
dfilter_apply_edt(colorf->c_colorfilter, edt)) {
/* this is the filter to use, apply it to the packet list */
+#ifndef NEW_PACKET_LIST
packet_list_set_colors(row, &(colorf->fg_color), &(colorf->bg_color));
+#endif
return colorf;
}
curr = g_slist_next(curr);
@@ -457,6 +460,7 @@ color_filters_colorize_packet(gint row, epan_dissect_t *edt)
return NULL;
}
+#endif /* NEW_PACKET_LIST */
/* read filters from the given file */
/* XXX - Would it make more sense to use GStrings here instead of reallocing