[brasero] Don't drive to eject medium if we don't have a GDrive
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Don't drive to eject medium if we don't have a GDrive
- Date: Wed, 9 Sep 2009 20:20:30 +0000 (UTC)
commit bebcba81af892f4bf165051504303368571fd061
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Sep 9 13:33:01 2009 +0200
Don't drive to eject medium if we don't have a GDrive
libbrasero-media/brasero-drive.c | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/libbrasero-media/brasero-drive.c b/libbrasero-media/brasero-drive.c
index 6522480..4a6a37d 100644
--- a/libbrasero-media/brasero-drive.c
+++ b/libbrasero-media/brasero-drive.c
@@ -215,13 +215,17 @@ brasero_drive_eject (BraseroDrive *drive,
g_cancellable_reset (priv->cancel);
}
- BRASERO_MEDIA_LOG ("Trying to eject drive (?)");
- res = brasero_gio_operation_eject_drive (priv->gdrive,
- priv->cancel,
- wait,
- error);
- if (res)
- return TRUE;
+ BRASERO_MEDIA_LOG ("Trying to eject drive");
+ if (priv->gdrive) {
+ res = brasero_gio_operation_eject_drive (priv->gdrive,
+ priv->cancel,
+ wait,
+ error);
+ if (res)
+ return TRUE;
+ }
+ else
+ BRASERO_BURN_LOG ("No GDrive");
if (!priv->medium)
return FALSE;
@@ -858,6 +862,7 @@ brasero_drive_update_gdrive (BraseroDrive *drive)
BraseroDrivePrivate *priv;
priv = BRASERO_DRIVE_PRIVATE (drive);
+
/* If it's not a fake drive then connect to signal for any
* change and check medium inside */
g_signal_connect (priv->gdrive,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]