diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-05-01 00:18:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-05-01 00:18:48 +0000 |
commit | bdb69627b2330e225c4676c261f3719a2ecdf5b8 (patch) | |
tree | 087ec2c4043916dd8799ae91b499d71aa82f702b /file.c | |
parent | 112bd7c6a7974607227449206f6f88d399076427 (diff) | |
download | wireshark-bdb69627b2330e225c4676c261f3719a2ecdf5b8.tar.gz |
"prefs.capture_real_time", not "prefs.capture_auto_scroll", should
control whether we have a child process do the capturing; a user might
want the packet list to be updated as packets arrive but *not* want it
to scroll so that the most recently arrived packets are shown.
"prefs.capture_auto_scroll", not "auto_scroll_live", should control
whether we scroll a real-time-update capture's packet list;
"auto_scroll_live" isn't set by the capture dialog box,
"prefs_capture_auto_scroll" is.
svn path=/trunk/; revision=3388
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.235 2001/03/24 02:14:54 guy Exp $ + * $Id: file.c,v 1.236 2001/05/01 00:18:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -94,8 +94,6 @@ extern GtkWidget *packet_list, *info_bar, *byte_nb_ptr, *tree_view; extern guint file_ctx; -gboolean auto_scroll_live = FALSE; - static guint32 firstsec, firstusec; static guint32 prevsec, prevusec; @@ -494,7 +492,7 @@ continue_tail_cap_file(capture_file *cf, int to_read, int *err) /* XXX - this cheats and looks inside the packet list to find the final row number. */ - if (auto_scroll_live && cf->plist_end != NULL) + if (prefs.capture_auto_scroll && cf->plist_end != NULL) gtk_clist_moveto(GTK_CLIST(packet_list), GTK_CLIST(packet_list)->rows - 1, -1, 1.0, 1.0); @@ -541,7 +539,7 @@ finish_tail_cap_file(capture_file *cf, int *err) } thaw_clist(cf); - if (auto_scroll_live && cf->plist_end != NULL) + if (prefs.capture_auto_scroll && cf->plist_end != NULL) /* XXX - this cheats and looks inside the packet list to find the final row number. */ gtk_clist_moveto(GTK_CLIST(packet_list), |