[Xfce4-commits] <thunar:master> Fix invalid signal.

Nick Schermer noreply at xfce.org
Sat Oct 13 16:12:27 CEST 2012


Updating branch refs/heads/master
         to a2e30106f3c7242d83b1496aa0d902fbb172a51e (commit)
       from bdf2740c11aa707576b84626f3f52d996c764f24 (commit)

commit a2e30106f3c7242d83b1496aa0d902fbb172a51e
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Oct 7 17:25:14 2012 +0200

    Fix invalid signal.

 thunar/thunar-device-monitor.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-device-monitor.c b/thunar/thunar-device-monitor.c
index 4f5798a..c8dd712 100644
--- a/thunar/thunar-device-monitor.c
+++ b/thunar/thunar-device-monitor.c
@@ -611,6 +611,7 @@ thunar_device_monitor_mount_pre_unmount (GVolumeMonitor      *volume_monitor,
 {
   ThunarDevice *device;
   GVolume      *volume;
+  GFile        *root_file;
 
   _thunar_return_if_fail (G_IS_VOLUME_MONITOR (volume_monitor));
   _thunar_return_if_fail (THUNAR_IS_DEVICE_MONITOR (monitor));
@@ -633,7 +634,11 @@ thunar_device_monitor_mount_pre_unmount (GVolumeMonitor      *volume_monitor,
   if (device != NULL)
     {
       /* notify */
-      g_signal_emit (G_OBJECT (monitor), device_monitor_signals[DEVICE_PRE_UNMOUNT], 0, device);
+      root_file = g_mount_get_root (mount);
+      g_signal_emit (G_OBJECT (monitor),
+                     device_monitor_signals[DEVICE_PRE_UNMOUNT],
+                     0, device, root_file);
+      g_object_unref (root_file);
     }
 }
 


More information about the Xfce4-commits mailing list