aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-07-25 07:50:53 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-07-25 07:50:53 +0000
commite40cc1fec423a2242c9c44361d14b33efabc8e43 (patch)
tree1c1a4e4b2eb59fe3fbaab0ce2c1c7cea5cd70384 /file.c
parent87c2e88a2b8b7b6873d6bb9110c1d655b915d4cb (diff)
From Kovarththanan Rajaratnam:
New packet list: enable goto first/last packet (Optimized) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29190 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.c')
-rw-r--r--file.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/file.c b/file.c
index fb20526846..21e3554df3 100644
--- a/file.c
+++ b/file.c
@@ -3398,6 +3398,10 @@ cf_goto_frame(capture_file *cf, guint fnumber)
gboolean
cf_goto_top_frame(capture_file *cf)
{
+#ifdef NEW_PACKET_LIST
+ /* Find and select */
+ new_packet_list_select_first_row();
+#else
frame_data *fdata;
int row;
frame_data *lowest_fdata = NULL;
@@ -3413,10 +3417,6 @@ cf_goto_top_frame(capture_file *cf)
return FALSE;
}
-#ifdef NEW_PACKET_LIST
- /* Find and select */
- row = new_packet_list_find_row_from_data(fdata, TRUE);
-#else
/* We found that packet, and it's currently being displayed.
Find what row it's in. */
row = packet_list_find_row_from_data(lowest_fdata);
@@ -3431,6 +3431,10 @@ cf_goto_top_frame(capture_file *cf)
gboolean
cf_goto_bottom_frame(capture_file *cf)
{
+#ifdef NEW_PACKET_LIST
+ /* Find and select */
+ new_packet_list_select_last_row();
+#else
frame_data *fdata;
int row;
frame_data *highest_fdata = NULL;
@@ -3445,10 +3449,6 @@ cf_goto_bottom_frame(capture_file *cf)
return FALSE;
}
-#ifdef NEW_PACKET_LIST
- /* Find and select */
- row = new_packet_list_find_row_from_data(fdata, TRUE);
-#else
/* We found that packet, and it's currently being displayed.
Find what row it's in. */
row = packet_list_find_row_from_data(highest_fdata);