Have MIN_PACKET_SIZE, rather than 1, be the minimum value in the spin
box for the capture size. svn path=/trunk/; revision=186
This commit is contained in:
parent
22990ed08f
commit
0e8998a11d
|
@ -1,7 +1,7 @@
|
|||
/* capture.c
|
||||
* Routines for packet capture windows
|
||||
*
|
||||
* $Id: capture.c,v 1.19 1999/02/11 06:17:29 guy Exp $
|
||||
* $Id: capture.c,v 1.20 1999/02/11 07:11:45 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -257,8 +257,8 @@ capture_prep_cb(GtkWidget *w, gpointer d) {
|
|||
gtk_box_pack_start(GTK_BOX(caplen_hb), snap_lb, FALSE, FALSE, 6);
|
||||
gtk_widget_show(snap_lb);
|
||||
|
||||
adj = (GtkAdjustment *) gtk_adjustment_new((float) cf.snap, 1.0,
|
||||
MAX_PACKET_SIZE, 1.0, 10.0, 0.0);
|
||||
adj = (GtkAdjustment *) gtk_adjustment_new((float) cf.snap,
|
||||
MIN_PACKET_SIZE, MAX_PACKET_SIZE, 1.0, 10.0, 0.0);
|
||||
snap_sb = gtk_spin_button_new (adj, 0, 0);
|
||||
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (snap_sb), TRUE);
|
||||
gtk_widget_set_usize (snap_sb, 80, 0);
|
||||
|
|
Loading…
Reference in New Issue