summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-01 00:18:48 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-01 00:18:48 +0000
commitbdb69627b2330e225c4676c261f3719a2ecdf5b8 (patch)
tree087ec2c4043916dd8799ae91b499d71aa82f702b /file.c
parent112bd7c6a7974607227449206f6f88d399076427 (diff)
downloadwireshark-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.c8
1 files changed, 3 insertions, 5 deletions
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 <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),