From 0628bd3291aad936b6b553366600590cca360bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 18 Sep 2012 18:33:07 +0200 Subject: util: Add an option to request dialogs being modal As WMs cannot open windows themselves, Mutter uses zenity to open "Force Quit" dialogs for unresponsive windows; as those are strongly tied to the corresponding window, it makes sense to make them modal (in particular when attaching them to their parent). https://bugzilla.gnome.org/show_bug.cgi?id=684322 --- src/password.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/password.c') diff --git a/src/password.c b/src/password.c index b656d8f..1582f95 100644 --- a/src/password.c +++ b/src/password.c @@ -134,6 +134,9 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data if (data->dialog_title) gtk_window_set_title (GTK_WINDOW (dialog), data->dialog_title); + if (data->modal) + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); + g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (zenity_password_dialog_response), password_data); -- cgit v1.2.1