From d532ea7b172d313760ffe8140dcaa8bcf3a60c52 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 20 Sep 2003 04:59:43 +0000 Subject: 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 --- gtk/dlg_utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/dlg_utils.c') 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 + * By Gerald Combs * 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); -- cgit v1.2.3