aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-02-04 19:29:27 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-02-04 19:29:27 +0000
commit69e94faff889d3e99696a089d357b86fd8cd0b3f (patch)
tree95422037235b2e15938016459e2011c6b1338bc0 /gtk/summary_dlg.c
parentc922091c097ff8de55f42f699dd713fcca84042e (diff)
remove #include "globals.h" from summary.c, as it's a bad idea for multiple capture files.
If a summary user would like to get a summary, it should know the file of *which* it needs the summary. svn path=/trunk/; revision=13291
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r--gtk/summary_dlg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c
index 7c88be31cc..c99e034241 100644
--- a/gtk/summary_dlg.c
+++ b/gtk/summary_dlg.c
@@ -33,6 +33,8 @@
#include <wtap.h>
#include <time.h>
+#include "globals.h"
+#include "file.h"
#include "summary.h"
#include "summary_dlg.h"
#include "dlg_utils.h"
@@ -108,7 +110,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
unsigned int elapsed_time;
/* initial computations */
- summary_fill_in(&summary);
+ summary_fill_in(&cfile, &summary);
seconds = summary.stop_time - summary.start_time;
disp_seconds = summary.filtered_stop - summary.filtered_start;