aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/capture_dlg.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-28 01:54:42 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-28 01:54:42 +0000
commit9650d477b30599f1ad35463a7bebd29fe44db424 (patch)
tree0464ff5c66ce13163a617da5ef7a90eefd47115e /ui/gtk/capture_dlg.h
parentf321db7c99b3ad7b907404dc9a8cb81b48692062 (diff)
From Pontus Fuchs:
add a capture_dlg_refresh_if() routine to redraw the list of interfaces in the Capture -> Interfaces dialog if the lsit of known interfaces is updated, and have it do that not by destroying and reconstructing the entire dialog box, but just by destroying and reconstructing the table containing the interfaces and their statistics. From me: have a refresh_interfaces_cb() routine in ui/gtk/main.c that scans the local interfaces and refreshes *all* the widgets that have interface lists; add a "Refresh Interfaces" item to the Capture menu that calls that; have the "Refresh" button in the "Manage Interfaces" window also call that; rename the Capture Options window routine dlg_window_present() to capture_dlg_window_present() to make it clearer *which* dialog it checks for; fix Pontus' patch to call capture_stat_stop() *before* nulling out the global pointer for the statistics cache - if it's called *after* nulling it out, the argument passed to capture_stat_stop() is null, and it doesn't kill off the dumpcap gathering the statistics so they just pile up (and, at least on OS X, chewing up BPF devices until you run out of BPF devices that have the right ownership and permissions for dumpcap to use as a normal user); if refreshing the interfaces fails to get an interface list, close the Capture Interfaces dialog. svn path=/trunk/; revision=43515
Diffstat (limited to 'ui/gtk/capture_dlg.h')
-rw-r--r--ui/gtk/capture_dlg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/gtk/capture_dlg.h b/ui/gtk/capture_dlg.h
index b2e2d3b0b0..da6f7de0d5 100644
--- a/ui/gtk/capture_dlg.h
+++ b/ui/gtk/capture_dlg.h
@@ -120,7 +120,7 @@ activate_monitor (GtkTreeViewColumn *tree_column, GtkCellRenderer *renderer,
GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data);
gboolean
-dlg_window_present(void);
+capture_dlg_window_present(void);
void
enable_selected_interface(gchar *name, gboolean selected);
@@ -131,4 +131,7 @@ options_interface_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *co
void
update_all_rows(void);
+void
+capture_dlg_refresh_if(void);
+
#endif /* capture_dlg.h */