diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-07-05 02:45:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-07-05 02:45:42 +0000 |
commit | 105d0f4f708e77833c7dada65eb333bcb9d11dfd (patch) | |
tree | 0fd8c60f0f3e26a1d5df719c68da5f5576aa0402 /gtk/filter_prefs.c | |
parent | 1e59b9dc86881820eecfe183f335b36ebd8692b4 (diff) |
Add a "dlg_window_new()" routine, which creates a GTK_WINDOW_DIALOG
window and makes it transient for the top-level window; the
transient-for at least provides a hint to X window managers to
minimize the dialog if the main window is minimized;
keep the dialog on top of the main window in the Z order for
windows;
perhaps (if there are any window managers that actually *do*
this) even put it atop the main window in the X-Y plane (KWM
doesn't and I seem to remember that the Exceed X server for
Windows doesn't).
It's generally considered the Right Thing To Do for dialog boxes.
Use that routine to create dialog boxes, rather than doing it directly
in the code for that dialog box.
svn path=/trunk/; revision=2112
Diffstat (limited to 'gtk/filter_prefs.c')
-rw-r--r-- | gtk/filter_prefs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/filter_prefs.c b/gtk/filter_prefs.c index 0b9720c466..e6678294c0 100644 --- a/gtk/filter_prefs.c +++ b/gtk/filter_prefs.c @@ -3,7 +3,7 @@ * (This used to be a notebook page under "Preferences", hence the * "prefs" in the file name.) * - * $Id: filter_prefs.c,v 1.11 2000/04/01 12:03:40 guy Exp $ + * $Id: filter_prefs.c,v 1.12 2000/07/05 02:45:39 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -47,6 +47,7 @@ #include "packet.h" #include "file.h" #include "util.h" +#include "dlg_utils.h" #include "ui_util.h" #include "prefs_dlg.h" @@ -221,7 +222,7 @@ filter_dialog_new(GtkWidget *caller, GtkWidget *filter_te) *cancel_bt; /* cancel button */ GtkWidget *filter_pg = NULL; /* filter settings box */ - main_w = gtk_window_new(GTK_WINDOW_TOPLEVEL); + main_w = dlg_window_new(); gtk_window_set_title(GTK_WINDOW(main_w), "Ethereal: Filters"); /* Call a handler when we're destroyed, so we can inform |