[nautilus] properties-window: make it modal



commit c021ef7145daf4498a013e840ab723b1a110d4d9
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Mar 1 18:19:18 2016 +0100

    properties-window: make it modal
    
    We prefer the dialogs to be modal so they are centered and attached
    to the parent.

 src/nautilus-properties-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 5ebf43d..1214752 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -4578,6 +4578,8 @@ create_properties_window (StartupData *startup_data)
 
        window = NAUTILUS_PROPERTIES_WINDOW (gtk_widget_new (NAUTILUS_TYPE_PROPERTIES_WINDOW,
                                                             "use-header-bar", TRUE,
+                                                            "type-hint", GDK_WINDOW_TYPE_HINT_DIALOG,
+                                                            "modal", TRUE,
                                                             NULL));
 
        window->details->original_files = nautilus_file_list_copy (startup_data->original_files);
@@ -4599,8 +4601,6 @@ create_properties_window (StartupData *startup_data)
                gtk_window_set_startup_id (GTK_WINDOW (window), startup_data->startup_id);
        }
 
-       gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DIALOG);
-
        /* Set initial window title */
        update_properties_window_title (window);
 


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