mirror of https://github.com/GNOME/gimp.git
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:
parent
7570bf60ee
commit
2702869799
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue