From 105d0f4f708e77833c7dada65eb333bcb9d11dfd Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 5 Jul 2000 02:45:42 +0000 Subject: 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 --- gtk/filter_prefs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/filter_prefs.c') 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 @@ -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 -- cgit v1.2.3