From bdb69627b2330e225c4676c261f3719a2ecdf5b8 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 1 May 2001 00:18:48 +0000 Subject: "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 --- file.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index ff5527c1f9..06d10c938b 100644 --- a/file.c +++ b/file.c @@ -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 @@ -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), -- cgit v1.2.1