[nautilus] Add every window to its own window group
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Add every window to its own window group
- Date: Tue, 10 Jul 2012 13:12:33 +0000 (UTC)
commit 5db3b0eb7d5860710c6516bdc509cf07d82d3762
Author: William Jon McCann <jmccann redhat com>
Date: Mon Jul 9 19:31:06 2012 -0400
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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 99e1107..c91db78 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]