[epiphany] Mark dialogs as modal
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Mark dialogs as modal
- Date: Wed, 29 Jan 2014 18:13:23 +0000 (UTC)
commit 66676e1c0009dc3d232f12b88cc7c2bbca583d74
Author: William Jon McCann <william jon mccann gmail com>
Date: Wed Jan 29 09:46:31 2014 -0500
Mark dialogs as modal
So they can be displayed with the correct style.
lib/ephy-file-chooser.c | 1 +
lib/widgets/ephy-certificate-dialog.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c
index 51ddec7..254b151 100644
--- a/lib/ephy-file-chooser.c
+++ b/lib/ephy-file-chooser.c
@@ -245,6 +245,7 @@ ephy_file_chooser_new (const char *title,
{
gtk_window_set_transient_for (GTK_WINDOW (dialog),
GTK_WINDOW (parent));
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_window_group_add_window (ephy_gui_ensure_window_group (GTK_WINDOW (parent)),
GTK_WINDOW (dialog));
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
diff --git a/lib/widgets/ephy-certificate-dialog.c b/lib/widgets/ephy-certificate-dialog.c
index 0366223..7d6fabb 100644
--- a/lib/widgets/ephy-certificate-dialog.c
+++ b/lib/widgets/ephy-certificate-dialog.c
@@ -321,6 +321,7 @@ ephy_certificate_dialog_new (GtkWindow *parent,
"address", address,
"certificate", certificate,
"tls-errors", tls_errors,
+ "modal", TRUE,
NULL));
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
_("_Close"), GTK_RESPONSE_CLOSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]