[Xfce4-commits] <thunar:jannis/new-shortcuts-pane> Show file:// mounts in the devices category.
Jannis Pohlmann
noreply at xfce.org
Thu Jun 9 21:56:01 CEST 2011
Updating branch refs/heads/jannis/new-shortcuts-pane
to f3f943221046b7cb0bb49b5236ecb052532724b3 (commit)
from 61964386bcbc93bf070e3eb3616b95ae9cfdc773 (commit)
commit f3f943221046b7cb0bb49b5236ecb052532724b3
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Thu Jun 9 21:53:51 2011 +0200
Show file:// mounts in the devices category.
thunar/thunar-shortcuts-model.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index 69e2c6a..6ddb5f7 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,
More information about the Xfce4-commits
mailing list