[file-roller: 91/123] avoid modal dialogs blocking other windows as well



commit a96a747be2fa47c78444a1c2b262dfa5a59a1836
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jul 31 11:27:51 2012 +0200

    avoid modal dialogs blocking other windows as well
    
    add each window to its own window group

 src/fr-window.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index b6268e9..c6b3f93 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -263,6 +263,7 @@ struct _FrWindowPrivate {
 	GtkTreePath       *tree_hover_path;
 	GtkTreePath       *list_hover_path;
 	GtkTreeViewColumn *filename_column;
+	GtkWindowGroup    *window_group;
 
 	gboolean         filter_mode;
 	gint             current_view_length;
@@ -633,6 +634,8 @@ fr_window_free_private_data (FrWindow *window)
 	_g_object_unref (window->priv->settings_nautilus);
 
 	_g_object_unref (window->priv->cancellable);
+
+	g_object_unref (window->priv->window_group);
 }
 
 
@@ -830,6 +833,9 @@ fr_window_init (FrWindow *window)
 	window->priv->batch_title = NULL;
 	window->priv->cancellable = g_cancellable_new ();
 	window->priv->compression = FR_COMPRESSION_NORMAL;
+	window->priv->window_group = gtk_window_group_new ();
+	gtk_window_group_add_window (window->priv->window_group, GTK_WINDOW (window));
+
 	window->archive = NULL;
 
 	g_signal_connect (window,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]