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:

committed by
Sven Neumann

parent
6c722dff53
commit
0ce7241e45
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user