[nautilus] mime-actions: Make "search in Software" Dialog modal



commit e7b402391aecc5fdeb814db91d93a526b2e41244
Author: Amandeep Singh <newtodisworld yandex com>
Date:   Wed Aug 7 16:03:44 2019 +0530

    mime-actions: Make "search in Software" Dialog modal
    
    when a file type, for which no handler application is installed,
    is opened, a dialog box pops up, which is not modal. This commit
    makes the dialog box modal.
    
    Closes #646

 src/nautilus-mime-actions.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index 5d1d5234e..83c66044e 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -1285,7 +1285,8 @@ pk_proxy_appeared_cb (GObject      *source,
     error_message = get_application_no_mime_type_handler_message (parameters_install->file,
                                                                   parameters_install->uri);
     /* use a custom dialog to prompt the user to install new software */
-    dialog = gtk_message_dialog_new (parameters_install->parent_window, 0,
+    dialog = gtk_message_dialog_new (parameters_install->parent_window,
+                                     GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
                                      GTK_MESSAGE_ERROR,
                                      GTK_BUTTONS_NONE,
                                      "%s", error_message);


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