[brasero] Add GtkMountOperation dialog when mounting



commit 25ddea39f41faca60890a4286c3a7328838f7bc7
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Tue Sep 1 20:52:14 2009 +0200

    Add GtkMountOperation dialog when mounting

 libbrasero-utils/brasero-io.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-utils/brasero-io.c b/libbrasero-utils/brasero-io.c
index bd12861..9f19162 100644
--- a/libbrasero-utils/brasero-io.c
+++ b/libbrasero-utils/brasero-io.c
@@ -596,15 +596,15 @@ brasero_io_mount_enclosing_volume (BraseroIO *self,
 	GMountOperation *operation;
 	BraseroIOMount mount = { NULL, };
 
-	/* FIXME: need a way to get a window for the operation */
-//	operation = gtk_mount_operation_new (GTK_WINDOW (brasero_app_get_default ()));
-	operation = NULL;
+	/* FIXME: need a way to get a parent window for the operation */
+	operation = gtk_mount_operation_new (NULL);
 	g_file_mount_enclosing_volume (file,
 				       G_MOUNT_MOUNT_NONE,
 				       operation,
 				       cancel,
 				       brasero_io_mount_enclosing_volume_cb,
 				       &mount);
+	g_object_unref (operation);
 
 	/* sleep and wait operation end */
 	while (!mount.finished && !g_cancellable_is_cancelled (cancel))



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