aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2009-07-20 06:21:35 +0000
committerStephen Fisher <steve@stephen-fisher.com>2009-07-20 06:21:35 +0000
commitedc8ae64f1b53aa87783cf067a7a7472d937f3ee (patch)
treecd4ac89962b19320a37704b37feb2ca2d9e15699 /file.c
parent96be1a38dacd9dc24539251a01931b3dcb2167eb (diff)
Introduce packet list coloring for the NEW_PACKET_LIST. One caveat: when
enabling/disabling the coloring of the packet list from the menus, the user has to drag the mouse cursor over each displayed row to take away/add the coloring. Dragging the scroll bar up or down will also take care of this as only the displayed rows are colored. svn path=/trunk/; revision=29142
Diffstat (limited to 'file.c')
-rw-r--r--file.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/file.c b/file.c
index 71ac4d1ba9..efa596bf23 100644
--- a/file.c
+++ b/file.c
@@ -1131,12 +1131,15 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
#endif
#ifdef NEW_PACKET_LIST
+ /* This function returns the color_t that was applied to the packet (in
+ * the old packet list). Applying the color to the packet is only done
+ * in the following function when not using the new packet list. */
+ fdata->color_filter = color_filters_colorize_packet(0, edt);
+
row = new_packet_list_append(cf->cinfo, fdata);
#else
row = packet_list_append(cf->cinfo.col_data, fdata);
-#endif
-#ifndef NEW_PACKET_LIST
/* colorize packet: first apply color filters
* then if packet is marked, use preferences to overwrite color
* we do both to make sure that when a packet gets un-marked, the