diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-06-01 22:24:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-06-01 22:24:05 +0000 |
commit | 885e4ddfcd9841eab2678ff31eee8ea641672937 (patch) | |
tree | 356ededb2c33964e519d9b319759c8ae8595e34e /capture.c | |
parent | 653de14d44ab1dbf4c6a6354eda343ad84baf3c8 (diff) |
When constructing the list for the "Count" combo box in the "Capture"
dialog box, put "0 (Infinite)" first, so that we default to that rather
than to the number of packets in the last capture we read.
svn path=/trunk/; revision=300
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.22 1999/05/11 18:51:09 deniel Exp $ + * $Id: capture.c,v 1.23 1999/06/01 22:24:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -205,11 +205,11 @@ capture_prep_cb(GtkWidget *w, gpointer d) { gtk_box_pack_start(GTK_BOX(count_hb), count_lb, FALSE, FALSE, 0); gtk_widget_show(count_lb); + count_list = g_list_append(count_list, count_item1); if (cf.count) { snprintf(count_item2, 15, "%d", cf.count); count_list = g_list_append(count_list, count_item2); } - count_list = g_list_append(count_list, count_item1); count_cb = gtk_combo_new(); gtk_combo_set_popdown_strings(GTK_COMBO(count_cb), count_list); |