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.
parent ff04d46e
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment