Updating branch refs/heads/jannis/new-shortcuts-pane
         to a78349f2fc3924202ab8b69661dedc1e5c4f018b (commit)
       from df1ae476aa9403c912a602194be87d02cde4c893 (commit)

commit a78349f2fc3924202ab8b69661dedc1e5c4f018b
Author: Jannis Pohlmann <[email protected]>
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,
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to