From 5db3b0eb7d5860710c6516bdc509cf07d82d3762 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 9 Jul 2012 19:31:06 -0400 Subject: [PATCH] Add every window to its own window group This prevents window modal dialogs from blocking the entire app. https://bugzilla.gnome.org/show_bug.cgi?id=443785 --- src/nautilus-window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 99e110706..c91db78ad 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -2250,6 +2250,8 @@ use_extra_mouse_buttons_changed (gpointer callback_data) static void nautilus_window_init (NautilusWindow *window) { + GtkWindowGroup *window_group; + window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, NAUTILUS_TYPE_WINDOW, NautilusWindowDetails); window->details->slots = NULL; @@ -2257,6 +2259,10 @@ nautilus_window_init (NautilusWindow *window) window->details->show_hidden_files_mode = NAUTILUS_WINDOW_SHOW_HIDDEN_FILES_DEFAULT; + window_group = gtk_window_group_new (); + gtk_window_group_add_window (window_group, GTK_WINDOW (window)); + g_object_unref (window_group); + /* Set initial window title */ gtk_window_set_title (GTK_WINDOW (window), _("Files")); gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (window), TRUE);