aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dlg_utils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-20 04:59:43 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-20 04:59:43 +0000
commitd532ea7b172d313760ffe8140dcaa8bcf3a60c52 (patch)
tree2716b587fbbfa4ea6affb6beb1e7a8716879c469 /gtk/dlg_utils.c
parentd4a5694c9980f80976464f6424ba6615e05d4376 (diff)
From Giles Scott:
in GTK+ 2.x, center dialogs on the parent; make the file selection dialogs transient for the main window, just as other dialogs are. Update Gerald's e-mail address. svn path=/trunk/; revision=8503
Diffstat (limited to 'gtk/dlg_utils.c')
-rw-r--r--gtk/dlg_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/dlg_utils.c b/gtk/dlg_utils.c
index 754a40503f..b88476bbc7 100644
--- a/gtk/dlg_utils.c
+++ b/gtk/dlg_utils.c
@@ -1,13 +1,12 @@
/* dlg_utils.c
* Utilities to use when constructing dialogs
*
- * $Id: dlg_utils.c,v 1.10 2002/11/10 11:00:29 oabad Exp $
+ * $Id: dlg_utils.c,v 1.11 2003/09/20 04:59:43 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@@ -50,6 +49,7 @@ dlg_window_new(const gchar *title)
win = gtk_window_new(GTK_WINDOW_DIALOG);
#else
win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER_ON_PARENT);
#endif
gtk_window_set_transient_for(GTK_WINDOW(win), GTK_WINDOW(top_level));
gtk_window_set_title(GTK_WINDOW(win), title);