Add a "dlg_window_new()" routine, which creates a GTK_WINDOW_DIALOG
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 5 Jul 2000 02:45:42 +0000 (02:45 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 5 Jul 2000 02:45:42 +0000 (02:45 +0000)
commitc71a664acfeeb10f17bca5b90b82a7b5240a1acb
tree0fd8c60f0f3e26a1d5df719c68da5f5576aa0402
parent8b2390f1ee492fc4f0508e98082b1cadb8255be1
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2112 f5534014-38df-0310-8fa8-9805f1628bb7
13 files changed:
gtk/capture_dlg.c
gtk/color_dlg.c
gtk/display_opts.c
gtk/dlg_utils.c
gtk/dlg_utils.h
gtk/filter_prefs.c
gtk/find_dlg.c
gtk/goto_dlg.c
gtk/plugins_dlg.c
gtk/prefs_dlg.c
gtk/print_dlg.c
gtk/progress_dlg.c
gtk/simple_dialog.c