aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-12-12 12:57:12 -0800
committerGuy Harris <guy@alum.mit.edu>2016-12-12 20:58:09 +0000
commit334485f65b1f35b193b18780cb7c166f62e1ffc9 (patch)
tree40344345af037ef225f5ed02bb96a6e2490ea5a2
parenteb1307a099ad1ed77cc70d501ab33284fcdb444d (diff)
Get rid of some GTK+-only routines in file.c.
Just directly call the packet_list_select_ routine from the GTK+ code. Change-Id: I9146fb968c407d6186b146a86aa34678765f7352 Reviewed-on: https://code.wireshark.org/review/19225 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--file.c17
-rw-r--r--file.h15
-rw-r--r--ui/gtk/goto_dlg.c4
3 files changed, 2 insertions, 34 deletions
diff --git a/file.c b/file.c
index ef593b4a3e..2f7aa518ee 100644
--- a/file.c
+++ b/file.c
@@ -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.
*/
diff --git a/file.h b/file.h
index fe397adb8e..f89bfdc0be 100644
--- a/file.h
+++ b/file.h
@@ -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