[epiphany] Always make message dialogs modal



commit f61a785839d2cccfa5ecf0a319acbe7e132127ab
Author: William Jon McCann <william jon mccann gmail com>
Date:   Thu Feb 6 16:51:30 2014 -0500

    Always make message dialogs modal
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723803

 lib/ephy-gui.c        |    6 +++---
 src/window-commands.c |    5 +++--
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index d67bc02..1e44c90 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -200,7 +200,7 @@ ephy_gui_check_location_writable (GtkWidget *parent,
                {
                        dialog = gtk_message_dialog_new (
                                        parent ? GTK_WINDOW(parent) : NULL,
-                                       GTK_DIALOG_DESTROY_WITH_PARENT,
+                                       GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                        GTK_MESSAGE_ERROR,
                                        GTK_BUTTONS_CLOSE,
                                        _("Directory ā€œ%sā€ is not writable"), path);
@@ -236,7 +236,7 @@ ephy_gui_check_location_writable (GtkWidget *parent,
        {
                dialog = gtk_message_dialog_new (
                                parent ? GTK_WINDOW(parent) : NULL,
-                               GTK_DIALOG_DESTROY_WITH_PARENT,
+                               GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                GTK_MESSAGE_ERROR,
                                GTK_BUTTONS_CLOSE,
                                _("Cannot overwrite existing file ā€œ%sā€"), display_name);
@@ -301,7 +301,7 @@ ephy_gui_help (GtkWidget *parent,
                GtkWidget *dialog;
 
                dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
-                                                GTK_DIALOG_DESTROY_WITH_PARENT,
+                                                GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                                 GTK_MESSAGE_ERROR,
                                                 GTK_BUTTONS_OK,
                                                 _("Could not display help: %s"),
diff --git a/src/window-commands.c b/src/window-commands.c
index 9857fd3..50db305 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -702,7 +702,8 @@ confirm_web_application_overwrite (GtkWindow *parent, const char *title)
   GtkResponseType response;
   GtkWidget *dialog;
 
-  dialog = gtk_message_dialog_new (parent, 0,
+  dialog = gtk_message_dialog_new (parent,
+                                  GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                   GTK_MESSAGE_QUESTION,
                                   GTK_BUTTONS_NONE,
                                   _("A web application named '%s' already exists. Do you want to replace 
it?"),
@@ -1661,7 +1662,7 @@ window_cmd_browse_with_caret (GtkAction *action,
                int response;
 
                dialog = gtk_message_dialog_new (GTK_WINDOW (window),
-                                                GTK_DIALOG_DESTROY_WITH_PARENT,
+                                                GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                                 GTK_MESSAGE_QUESTION, GTK_BUTTONS_CANCEL,
                                                 _("Enable caret browsing mode?"));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]