aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-11-06 06:54:24 +0000
committerGuy Harris <guy@alum.mit.edu>1999-11-06 06:54:24 +0000
commitf633fe025922f9869827e4c2c908c2152d748526 (patch)
tree4781307744f035788a95712061b7604274cd5ce8 /file.c
parent2d7950fffcae6a2b0ba646eec3300715ebe31603 (diff)
Pop up a message box if a search for a frame fails.
svn path=/trunk/; revision=985
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/file.c b/file.c
index a98afa79b8..c1412e2131 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.117 1999/11/06 06:26:55 guy Exp $
+ * $Id: file.c,v 1.118 1999/11/06 06:54:21 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1388,7 +1388,7 @@ clear_tree_and_hex_views(void)
gtk_tree_clear_items(GTK_TREE(tree_view), 0, -1);
}
-void
+gboolean
find_packet(capture_file *cf, dfilter *sfcode)
{
frame_data *start_fd;
@@ -1485,7 +1485,9 @@ find_packet(capture_file *cf, dfilter *sfcode)
if (!gtk_clist_row_is_visible(GTK_CLIST(packet_list), new_fd->row))
gtk_clist_moveto(GTK_CLIST(packet_list), new_fd->row, -1, 0.0, 0.0);
gtk_clist_select_row(GTK_CLIST(packet_list), new_fd->row, -1);
- }
+ return TRUE; /* success */
+ } else
+ return FALSE; /* failure */
}
/* Select the packet on a given row. */