aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-07-25 07:50:53 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-07-25 07:50:53 +0000
commitbe084ae799ff0866f15679db480a9c42aa072322 (patch)
tree1c1a4e4b2eb59fe3fbaab0ce2c1c7cea5cd70384 /file.c
parent14852c1384595005fd02a5e081a02ae80380c377 (diff)
From Kovarththanan Rajaratnam:
New packet list: enable goto first/last packet (Optimized) svn path=/trunk/; revision=29190
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);