[brasero] Emit "medium-removed" when a BraseroDrive is finalized
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Emit "medium-removed" when a BraseroDrive is finalized
- Date: Thu, 30 Jul 2009 07:34:15 +0000 (UTC)
commit fed9be7cdc36172237e72a882546c7600dfd8d0e
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Jul 28 14:30:35 2009 +0200
Emit "medium-removed" when a BraseroDrive is finalized
libbrasero-media/brasero-drive.c | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/libbrasero-media/brasero-drive.c b/libbrasero-media/brasero-drive.c
index e133381..3ff52a7 100644
--- a/libbrasero-media/brasero-drive.c
+++ b/libbrasero-media/brasero-drive.c
@@ -1029,11 +1029,6 @@ brasero_drive_finalize (GObject *object)
priv = BRASERO_DRIVE_PRIVATE (object);
- if (priv->udi) {
- g_free (priv->udi);
- priv->udi = NULL;
- }
-
if (priv->probe) {
priv->probe_cancelled = TRUE;
g_thread_join (priv->probe);
@@ -1045,14 +1040,23 @@ brasero_drive_finalize (GObject *object)
priv->probe_id = 0;
}
+ if (priv->medium) {
+ g_signal_emit (object,
+ drive_signals [MEDIUM_REMOVED],
+ 0,
+ priv->medium);
+ g_object_unref (priv->medium);
+ priv->medium = NULL;
+ }
+
if (priv->block_path) {
g_free (priv->block_path);
priv->block_path = NULL;
}
- if (priv->medium) {
- g_object_unref (priv->medium);
- priv->medium = NULL;
+ if (priv->udi) {
+ g_free (priv->udi);
+ priv->udi = NULL;
}
if (priv->gdrive) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]