Introduce experimental new feature: GTK2 tree view based packet list
[obnox/wireshark/wip.git] / color_filters.c
index 6d72c1928eee162cc7870648b0a1deea0b0e4ec3..4076e22203353453b846ffdbc80336848e7dd9aa 100644 (file)
@@ -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