summaryrefslogtreecommitdiff
path: root/thunar/thunar-tree-model.c
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-10-07 13:46:21 +0200
committerNick Schermer <nick@xfce.org>2012-10-13 16:10:35 +0200
commitbdf2740c11aa707576b84626f3f52d996c764f24 (patch)
treec20d0025e2d76f470814a179227e75a9d2a3d150 /thunar/thunar-tree-model.c
parent67578cbf9caead21d9fe137ba25862fe39455ef7 (diff)
downloadthunar-bdf2740c11aa707576b84626f3f52d996c764f24.tar.gz
Propely leave unmounted mounts and volumes.
Diffstat (limited to 'thunar/thunar-tree-model.c')
-rw-r--r--thunar/thunar-tree-model.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/thunar/thunar-tree-model.c b/thunar/thunar-tree-model.c
index ecd15cbc..e2bbabf8 100644
--- a/thunar/thunar-tree-model.c
+++ b/thunar/thunar-tree-model.c
@@ -120,6 +120,7 @@ static void thunar_tree_model_device_added (ThunarDev
ThunarTreeModel *model);
static void thunar_tree_model_device_pre_unmount (ThunarDeviceMonitor *device_monitor,
ThunarDevice *device,
+ GFile *root_file,
ThunarTreeModel *model);
static void thunar_tree_model_device_removed (ThunarDeviceMonitor *device_monitor,
ThunarDevice *device,
@@ -1025,6 +1026,7 @@ thunar_tree_model_device_changed (ThunarDeviceMonitor *device_monitor,
static void
thunar_tree_model_device_pre_unmount (ThunarDeviceMonitor *device_monitor,
ThunarDevice *device,
+ GFile *root_file,
ThunarTreeModel *model)
{
GNode *node;
@@ -1032,6 +1034,7 @@ thunar_tree_model_device_pre_unmount (ThunarDeviceMonitor *device_monitor,
_thunar_return_if_fail (THUNAR_IS_DEVICE_MONITOR (device_monitor));
_thunar_return_if_fail (model->device_monitor == device_monitor);
_thunar_return_if_fail (THUNAR_IS_DEVICE (device));
+ _thunar_return_if_fail (G_IS_FILE (root_file));
_thunar_return_if_fail (THUNAR_IS_TREE_MODEL (model));
/* lookup the node for the volume (if visible) */