make the dialogs transient to the progress window if no parent or screen

2008-03-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/gimpmountoperation.c: make the dialogs transient to
	the progress window if no parent or screen has been set.

svn path=/trunk/; revision=25137
This commit is contained in:
Sven Neumann
2008-03-20 10:24:48 +00:00
committed by Sven Neumann
parent 6c722dff53
commit 0ce7241e45
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-20 Sven Neumann <sven@gimp.org>
* plug-ins/uri/gimpmountoperation.c: make the dialogs transient to
the progress window if no parent or screen has been set.
2008-03-20 Sven Neumann <sven@gimp.org>
* plug-ins/common/gif-save.c: added a sanity check and abort when

View File

@ -29,7 +29,8 @@
#include <string.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "gimpmountoperation.h"
@ -595,6 +596,9 @@ gimp_mount_operation_ask_password (GMountOperation *mount_op,
if (priv->parent_window == NULL && priv->screen)
gtk_window_set_screen (GTK_WINDOW (dialog), priv->screen);
if (! priv->parent_window && ! priv->screen)
gimp_window_set_transient (GTK_WINDOW (dialog));
gtk_widget_show_all (GTK_WIDGET (dialog));
g_object_ref (operation);
@ -677,6 +681,9 @@ gimp_mount_operation_ask_question (GMountOperation *op,
if (priv->parent_window == NULL && priv->screen)
gtk_window_set_screen (GTK_WINDOW (dialog), priv->screen);
if (! priv->parent_window && ! priv->screen)
gimp_window_set_transient (GTK_WINDOW (dialog));
gtk_widget_show (dialog);
g_object_ref (op);
}