use the toplevel widget as transient parent.

2007-01-16  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c (file_open_dialog_show): use the
	toplevel widget as transient parent.


svn path=/trunk/; revision=21724
This commit is contained in:
Sven Neumann 2007-01-16 12:55:00 +00:00 committed by Sven Neumann
parent 7570bf60ee
commit 2702869799
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-01-16 Sven Neumann <sven@gimp.org>
* app/actions/file-commands.c (file_open_dialog_show): use the
toplevel widget as transient parent.
2007-01-16 Sven Neumann <sven@gimp.org>
* app/widgets/gimpprofilechooserdialog.c: use GTK_RESPONSE_ACCEPT

View File

@ -470,7 +470,10 @@ file_open_dialog_show (GtkWidget *parent,
GIMP_FILE_DIALOG (dialog)->image = NULL;
}
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent));
parent = gtk_widget_get_toplevel (parent);
if (GTK_IS_WINDOW (parent))
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent));
gtk_window_present (GTK_WINDOW (dialog));
}