diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-02-25 16:35:06 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-02-25 16:55:38 +0100 |
commit | c98de162aa9f0a3ca2a5ce24ff2f0acbb4c47603 (patch) | |
tree | b832b19de804fff888e453adda26612bf04a088c | |
parent | ff04d46ec0597dc76bfd8efbfc13b9fe348bb364 (diff) | |
download | nautilus-c98de162aa9f0a3ca2a5ce24ff2f0acbb4c47603.tar.gz |
preferences: make the preferences dialog modal
A dialog without a transient parent is discouraged. And
also we usually use modal for preferences dialogs, so
do the same for nautilus as well.
-rw-r--r-- | src/nautilus-file-management-properties.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-file-management-properties.c b/src/nautilus-file-management-properties.c index a30aaaed5..80ac0d937 100644 --- a/src/nautilus-file-management-properties.c +++ b/src/nautilus-file-management-properties.c @@ -678,6 +678,9 @@ nautilus_file_management_properties_dialog_setup (GtkBuilder *builder, GtkWindow preferences_dialog = dialog; g_object_add_weak_pointer (G_OBJECT (dialog), (gpointer *) &preferences_dialog); + gtk_window_set_transient_for (GTK_WINDOW (dialog), window); + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); + gtk_widget_show (dialog); } |