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
|
/* capture.c
|
||||||
* Routines for packet capture windows
|
* 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
|
* Ethereal - Network traffic analyzer
|
||||||
* By Gerald Combs <gerald@zing.org>
|
* 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_box_pack_start(GTK_BOX(caplen_hb), snap_lb, FALSE, FALSE, 6);
|
||||||
gtk_widget_show(snap_lb);
|
gtk_widget_show(snap_lb);
|
||||||
|
|
||||||
adj = (GtkAdjustment *) gtk_adjustment_new((float) cf.snap, 1.0,
|
adj = (GtkAdjustment *) gtk_adjustment_new((float) cf.snap,
|
||||||
MAX_PACKET_SIZE, 1.0, 10.0, 0.0);
|
MIN_PACKET_SIZE, MAX_PACKET_SIZE, 1.0, 10.0, 0.0);
|
||||||
snap_sb = gtk_spin_button_new (adj, 0, 0);
|
snap_sb = gtk_spin_button_new (adj, 0, 0);
|
||||||
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (snap_sb), TRUE);
|
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (snap_sb), TRUE);
|
||||||
gtk_widget_set_usize (snap_sb, 80, 0);
|
gtk_widget_set_usize (snap_sb, 80, 0);
|
||||||
|
|
Loading…
Reference in New Issue