[nautilus] properties-window: make icon chooser dialog modal



commit 6df5972a6b3d472d64dd741626424a3332d2fd17
Author: Ernestas Kulik <ernestask src gnome org>
Date:   Mon May 9 19:26:51 2016 +0300

    properties-window: make icon chooser dialog modal
    
    The custom icon selection GtkFileChooserDialog is unresponsive when
    opened. This is caused by the properties dialog window being modal,
    since it is up to the window manager how to process input in such
    situations.
    
    One of the ways to ensure that the child dialog receives and processes
    user input is by making it modal. This commit makes it such.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753394

 src/nautilus-properties-window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 94544c3..2fb33c7 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -5149,6 +5149,7 @@ select_image_button_callback (GtkWidget *widget,
                                                      g_get_user_special_dir (G_USER_DIRECTORY_PICTURES),
                                                      NULL);
                gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
+               gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 
                filter = gtk_file_filter_new ();
                gtk_file_filter_add_pixbuf_formats (filter);


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