mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
Set password dialog modal and transient for the parent window also if it
2008-05-27 Carlos Garnacho <carlos@imendio.com> * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Set password dialog modal and transient for the parent window also if it was specified in the constructor. Bug #531864. svn path=/trunk/; revision=20182
This commit is contained in:
parent
f3a6fecb67
commit
416bda1204
@ -1,3 +1,9 @@
|
||||
2008-05-27 Carlos Garnacho <carlos@imendio.com>
|
||||
|
||||
* gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Set
|
||||
password dialog modal and transient for the parent window also if it
|
||||
was specified in the constructor. Bug #531864.
|
||||
|
||||
2008-05-26 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Try
|
||||
|
@ -621,7 +621,12 @@ gtk_mount_operation_ask_password (GMountOperation *mount_op,
|
||||
|
||||
g_object_notify (G_OBJECT (operation), "is-showing");
|
||||
|
||||
if (priv->parent_window == NULL && priv->screen)
|
||||
if (priv->parent_window)
|
||||
{
|
||||
gtk_window_set_transient_for (window, priv->parent_window);
|
||||
gtk_window_set_modal (window, TRUE);
|
||||
}
|
||||
else if (priv->screen)
|
||||
gtk_window_set_screen (GTK_WINDOW (dialog), priv->screen);
|
||||
|
||||
gtk_widget_show_all (GTK_WIDGET (dialog));
|
||||
|
Loading…
Reference in New Issue
Block a user