summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2011-06-09 21:53:51 +0200
committerJannis Pohlmann <jannis@xfce.org>2011-07-15 21:07:41 +0200
commita78349f2fc3924202ab8b69661dedc1e5c4f018b (patch)
tree6cf6a10fbcbdb8b92f49604a73347787dbf89c20
parentdf1ae476aa9403c912a602194be87d02cde4c893 (diff)
downloadthunar-a78349f2fc3924202ab8b69661dedc1e5c4f018b.tar.gz
Show file:// mounts in the devices category.
-rw-r--r--thunar/thunar-shortcuts-model.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index 69e2c6a0..6ddb5f7b 100644
--- a/thunar/thunar-shortcuts-model.c
+++ b/thunar/thunar-shortcuts-model.c
@@ -940,6 +940,14 @@ thunar_shortcuts_model_find_category (ThunarShortcutsModel *model,
{
item_belongs_here = TRUE;
}
+
+ /* mounts with mount points that are in file:// belong here */
+ if (type == THUNAR_SHORTCUT_STANDALONE_MOUNT
+ && file != NULL
+ && g_file_has_uri_scheme (file, "file"))
+ {
+ item_belongs_here = TRUE;
+ }
break;
case THUNAR_SHORTCUT_CATEGORY_PLACES:
@@ -1623,6 +1631,8 @@ thunar_shortcuts_model_mount_added (ThunarShortcutsModel *model,
location = g_mount_get_root (mount);
eject_icon = g_themed_icon_new ("media-eject");
+ g_debug ("mount added: %s", g_mount_get_name (mount));
+
/* create a shortcut for the mount */
shortcut = g_object_new (THUNAR_TYPE_SHORTCUT,
"shortcut-type", THUNAR_SHORTCUT_STANDALONE_MOUNT,