diff options
-rw-r--r-- | file.c | 17 | ||||
-rw-r--r-- | file.h | 15 | ||||
-rw-r--r-- | ui/gtk/goto_dlg.c | 4 |
3 files changed, 2 insertions, 34 deletions
@@ -3612,23 +3612,6 @@ cf_goto_frame(capture_file *cf, guint fnumber) return TRUE; /* we got to that packet */ } -gboolean -cf_goto_top_frame(void) -{ - /* Find and select */ - packet_list_select_first_row(); - return TRUE; /* we got to that packet */ -} - -/* GTK+ only */ -gboolean -cf_goto_bottom_frame(void) -{ - /* Find and select */ - packet_list_select_last_row(); - return TRUE; /* we got to that packet */ -} - /* * Go to frame specified by currently selected protocol tree item. */ @@ -558,21 +558,6 @@ gboolean cf_find_packet_marked(capture_file *cf, search_direction dir); gboolean cf_find_packet_time_reference(capture_file *cf, search_direction dir); /** - * GoTo Packet in first row. - * - * @return TRUE if the first row exists, FALSE otherwise - */ -gboolean cf_goto_top_frame(void); - -/** - * GoTo Packet in last row. - * - * @return TRUE if last row exists, FALSE otherwise - */ -/* GTK+ only */ -gboolean cf_goto_bottom_frame(void); - -/** * GoTo Packet with the given row. * * @param cf the capture file diff --git a/ui/gtk/goto_dlg.c b/ui/gtk/goto_dlg.c index 4f246d9b77..dbfee24b8c 100644 --- a/ui/gtk/goto_dlg.c +++ b/ui/gtk/goto_dlg.c @@ -146,13 +146,13 @@ goto_framenum_cb(GtkWidget *w _U_, gpointer data _U_) void goto_top_frame_cb(GtkWidget *w _U_, gpointer d _U_) { - cf_goto_top_frame(); + packet_list_select_first_row(); } void goto_bottom_frame_cb(GtkWidget *w _U_, gpointer d _U_) { - cf_goto_bottom_frame(); + packet_list_select_last_row(); } void |