summaryrefslogtreecommitdiff
path: root/gtk/capture_info_dlg.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-10-30 17:50:51 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-10-30 17:50:51 +0000
commit7445ecfd0568693f1b4d6f13381cb118b7537e51 (patch)
treebf5f61e3b12f890c3a7ad8326e5dc14132d148bf /gtk/capture_info_dlg.c
parent7d4095d2af1df53a6938825a3e5c330495e7c1cb (diff)
downloadwireshark-7445ecfd0568693f1b4d6f13381cb118b7537e51.tar.gz
split capture_loop from capture.c, some more code cleanup
svn path=/trunk/; revision=12451
Diffstat (limited to 'gtk/capture_info_dlg.c')
-rw-r--r--gtk/capture_info_dlg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/capture_info_dlg.c b/gtk/capture_info_dlg.c
index 44d4807d61..d155294824 100644
--- a/gtk/capture_info_dlg.c
+++ b/gtk/capture_info_dlg.c
@@ -54,7 +54,7 @@ typedef struct {
typedef struct {
GtkWidget *cap_w;
GtkWidget *running_time_lb;
- capture_info_counts_t counts[CAPTURE_PACKET_COUNTS];
+ capture_info_counts_t counts[PACKET_COUNTS_SIZE];
} capture_info_ui_t;
@@ -130,7 +130,7 @@ gchar *iface)
gtk_widget_show(counts_fr);
/* Individual statistic elements */
- counts_tb = gtk_table_new(CAPTURE_PACKET_COUNTS, 4, TRUE);
+ counts_tb = gtk_table_new(PACKET_COUNTS_SIZE, 4, TRUE);
gtk_container_add(GTK_CONTAINER(counts_fr), counts_tb);
gtk_container_border_width(GTK_CONTAINER(counts_tb), 5);
gtk_widget_show(counts_tb);
@@ -138,7 +138,7 @@ gchar *iface)
gtk_table_set_row_spacings(GTK_TABLE(counts_tb), 0);
gtk_table_set_col_spacings(GTK_TABLE(counts_tb), 5);
- for (i = 0; i < CAPTURE_PACKET_COUNTS; i++) {
+ for (i = 0; i < PACKET_COUNTS_SIZE; i++) {
info->counts[i].label = gtk_label_new(info->counts[i].title);
gtk_misc_set_alignment(GTK_MISC(info->counts[i].label), 0.0f, 0.5f);
@@ -238,7 +238,7 @@ capture_info *cinfo)
if (cinfo->new_packets) {
- for (i = 0; i < CAPTURE_PACKET_COUNTS; i++) {
+ for (i = 0; i < PACKET_COUNTS_SIZE; i++) {
g_snprintf(label_str, sizeof(label_str), "%d",
*info->counts[i].value_ptr);
gtk_label_set(GTK_LABEL(info->counts[i].value_lb), label_str);