summaryrefslogtreecommitdiff
path: root/gtk/goto_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-07-05 02:45:42 +0000
committerGuy Harris <guy@alum.mit.edu>2000-07-05 02:45:42 +0000
commit105d0f4f708e77833c7dada65eb333bcb9d11dfd (patch)
tree0fd8c60f0f3e26a1d5df719c68da5f5576aa0402 /gtk/goto_dlg.c
parent1e59b9dc86881820eecfe183f335b36ebd8692b4 (diff)
downloadwireshark-105d0f4f708e77833c7dada65eb333bcb9d11dfd.tar.gz
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/goto_dlg.c')
-rw-r--r--gtk/goto_dlg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/goto_dlg.c b/gtk/goto_dlg.c
index 627e9c0ba9..78df4e64f0 100644
--- a/gtk/goto_dlg.c
+++ b/gtk/goto_dlg.c
@@ -1,7 +1,7 @@
/* goto_dlg.c
* Routines for "go to frame" window
*
- * $Id: goto_dlg.c,v 1.7 2000/06/27 04:36:01 guy Exp $
+ * $Id: goto_dlg.c,v 1.8 2000/07/05 02:45:40 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -64,7 +64,7 @@ goto_frame_cb(GtkWidget *w, gpointer d)
GtkWidget *goto_frame_w, *main_vb, *fnumber_hb, *fnumber_lb, *fnumber_te,
*bbox, *ok_bt, *cancel_bt;
- goto_frame_w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ goto_frame_w = dlg_window_new();
gtk_window_set_title(GTK_WINDOW(goto_frame_w), "Ethereal: Go To Frame");
/* Container for each row of widgets */