diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-12-29 09:09:35 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-12-29 09:09:35 +0000 |
commit | 2ed93e96bd6c630a9171ea5d5217098fbfa76746 (patch) | |
tree | de1cdbec9c926a405377e4e9006c3bfcd8d5161b /gtk/capture_info_dlg.c | |
parent | f1deabed568a18c05afdca5f4898fc9e13f71e91 (diff) |
Don't use a global capture_opts in the capturing engine (this isn't a good idea). Do some more "housekeeping" in the capturing part.
Hopefully the unspecified forward declaration of capture_options_t in main.h is portable, but buildbot will tell me. This way I need the internals of that struct only at the places I really use it.
svn path=/trunk/; revision=12853
Diffstat (limited to 'gtk/capture_info_dlg.c')
-rw-r--r-- | gtk/capture_info_dlg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/capture_info_dlg.c b/gtk/capture_info_dlg.c index dd7385a63e..8738c5b9a5 100644 --- a/gtk/capture_info_dlg.c +++ b/gtk/capture_info_dlg.c @@ -40,6 +40,7 @@ #include "capture_combo_utils.h" #include "dlg_utils.h" #include "ui_util.h" +#include "main.h" /* a single capture counter value (with title, pointer to value and GtkWidgets) */ /* as the packet_counts is a struct, not an array, keep a pointer to the */ @@ -71,7 +72,7 @@ pct(gint num, gint denom) { static void capture_info_delete_cb(GtkWidget *w _U_, GdkEvent *event _U_, gpointer data _U_) { - capture_stop(); + capture_stop(capture_opts->sync_mode); } |