[nautilus] preferences: make the preferences dialog modal
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] preferences: make the preferences dialog modal
- Date: Wed, 25 Feb 2015 15:56:07 +0000 (UTC)
commit c98de162aa9f0a3ca2a5ce24ff2f0acbb4c47603
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Feb 25 16:35:06 2015 +0100
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.
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 a30aaae..80ac0d9 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]