[Xfce4-commits] <thunar:nick/new-shortcuts-pane-model> Fix invalid signal.
Nick Schermer
noreply at xfce.org
Sun Oct 7 17:30:01 CEST 2012
Updating branch refs/heads/nick/new-shortcuts-pane-model
to d92e1ce6addb1a931ed0921b81f5e343341eaece (commit)
from e0eca682ba9f15b992ec81f03ad50f886d273433 (commit)
commit d92e1ce6addb1a931ed0921b81f5e343341eaece
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