davemds pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/places.git/commit/?id=2ef240acc4154bce50afa33e8cd28e227d421606

commit 2ef240acc4154bce50afa33e8cd28e227d421606
Author: Dave Andreoli <[email protected]>
Date:   Sat Jan 10 21:42:02 2015 +0100

    Support icon/tag for network fs (nfs or cifs)
---
 src/e_mod_places.c | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/src/e_mod_places.c b/src/e_mod_places.c
index 50146c0..b26bbcd 100644
--- a/src/e_mod_places.c
+++ b/src/e_mod_places.c
@@ -309,6 +309,12 @@ places_fill_box(Evas_Object *main, Eina_Bool horiz)
           {
              f1 = "drive"; f2 = "removable-media"; f3 = "usb";
           }
+        /* network filesystem */
+        else if (!strcmp(vol->fstype, "nfs") ||
+                 !strcmp(vol->fstype, "cifs"))
+          {
+             f1 = "folder"; f2 = "remote";
+          }
 
         // search the icon, following freedesktop fallback system
         found = 0;
@@ -335,15 +341,22 @@ places_fill_box(Evas_Object *main, Eina_Bool horiz)
         else evas_object_del(icon);
 
         //set partition type tag
-        if (!strcmp(vol->fstype, "ext2") || !strcmp(vol->fstype, "ext3") ||
-            !strcmp(vol->fstype, "ext4") || !strcmp(vol->fstype, "reiserfs"))
+        if (!strcmp(vol->fstype, "ext2") ||
+            !strcmp(vol->fstype, "ext3") ||
+            !strcmp(vol->fstype, "ext4") ||
+            !strcmp(vol->fstype, "reiserfs") ||
+            !strcmp(vol->fstype, "nfs"))
           edje_object_signal_emit(o, "icon,tag,ext3", "places");
-        else if (!strcmp(vol->fstype, "ufs") || !strcmp(vol->fstype, "zfs"))
+        else if (!strcmp(vol->fstype, "ufs") ||
+                 !strcmp(vol->fstype, "zfs"))
           edje_object_signal_emit(o, "icon,tag,ufs", "places");
-        else if (!strcmp(vol->fstype, "vfat") || !strcmp(vol->fstype, "ntfs") 
||
-                 !strcmp(vol->fstype, "ntfs-3g"))
+        else if (!strcmp(vol->fstype, "vfat") ||
+                 !strcmp(vol->fstype, "ntfs") ||
+                 !strcmp(vol->fstype, "ntfs-3g") ||
+                 !strcmp(vol->fstype, "cifs"))
           edje_object_signal_emit(o, "icon,tag,fat", "places");
-        else if (!strcmp(vol->fstype, "hfs") || !strcmp(vol->fstype, 
"hfsplus"))
+        else if (!strcmp(vol->fstype, "hfs") ||
+                 !strcmp(vol->fstype, "hfsplus"))
           edje_object_signal_emit(o, "icon,tag,hfs", "places");
         else if (!strcmp(vol->fstype, "udf"))
           edje_object_signal_emit(o, "icon,tag,dvd", "places");

-- 


Reply via email to