From 6a91088ed00db63f0c9ac836881cb6a8bbaa3c27 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 13 Dec 2003 03:36:17 +0000 Subject: Put in a comment about some issues with the way we do "Update list of packets in real time" captures. svn path=/trunk/; revision=9269 --- gtk/dlg_utils.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/dlg_utils.c b/gtk/dlg_utils.c index 3c13f1ea8b..09eda1f9c3 100644 --- a/gtk/dlg_utils.c +++ b/gtk/dlg_utils.c @@ -1,7 +1,7 @@ /* dlg_utils.c * Utilities to use when constructing dialogs * - * $Id: dlg_utils.c,v 1.13 2003/12/12 02:50:04 gerald Exp $ + * $Id: dlg_utils.c,v 1.14 2003/12/13 03:36:17 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -51,6 +51,20 @@ dlg_window_new(const gchar *title) win = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER_ON_PARENT); #endif + /* + * XXX - if we're running in the capture child process, we can't easily + * make this window transient for the main process's window. We just + * punt here. + * + * Perhaps the child process should only capture packets, write them to + * a file, and somehow notify the parent process and let *it* do all + * the GUI work. If we can do that efficiently (so that we don't drop + * more packets), perhaps we can also do so even when we're *not* doing + * an "Update list of packets in real time" capture. That'd let the + * child process run set-UID on platforms where you need that in order + * to capture, and might also simplify the job of having the GUI main + * loop wait both for user input and packet arrival. + */ if (top_level) { gtk_window_set_transient_for(GTK_WINDOW(win), GTK_WINDOW(top_level)); } -- cgit v1.2.3