[rhythmbox] shell: don't associate mount operations with the window



commit 1cb02d16a24181d07db3195ce3a3f4e42bbe5cff
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Aug 9 21:05:36 2010 +1000

    shell: don't associate mount operations with the window
    
    When a mount operation is associated with a window, it becomes modal for that
    window, which doesn't really work all that well for us.

 shell/rb-shell.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
index b3db3a6..851ed4c 100644
--- a/shell/rb-shell.c
+++ b/shell/rb-shell.c
@@ -1161,7 +1161,11 @@ rb_shell_new (gboolean no_registration,
 static GMountOperation *
 rb_shell_create_mount_op_cb (RhythmDB *db, RBShell *shell)
 {
-	return gtk_mount_operation_new (GTK_WINDOW (shell->priv->window));
+	/* we don't want the operation to be modal, so we don't associate it with the window. */
+	GMountOperation *op = gtk_mount_operation_new (NULL);
+	gtk_mount_operation_set_screen (GTK_MOUNT_OPERATION (op),
+					gtk_window_get_screen (GTK_WINDOW (shell->priv->window)));
+	return op;
 }
 
 static void



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