discomfitor pushed a commit to branch enlightenment-0.22.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=8b129bab79a57ec25583495948c61896bca7bee3

commit 8b129bab79a57ec25583495948c61896bca7bee3
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 10 17:50:57 2018 +0900

    efm - fill in some media icon blanks which lead to generic icons
    
    i found a thumbdrive i got a generic "whatever" file icon for...
    because efm media type matching didnt find an icon name for it. fix
    that.
---
 src/bin/e_fm_device.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/e_fm_device.c b/src/bin/e_fm_device.c
index ed9d1b656..d3af98ace 100644
--- a/src/bin/e_fm_device.c
+++ b/src/bin/e_fm_device.c
@@ -100,12 +100,17 @@ _e_fm2_device_volume_setup(E_Volume *v)
           icon = "media-floppy";
         else if (!strcmp(v->storage->drive_type, "tape"))
           icon = "media-tape";
+        else if (!strcmp(v->storage->drive_type, "thumb"))
+          // XXX: maybe a spcial type?
+          icon = "drive-removable-media";
         else if (!strcmp(v->storage->drive_type, "compact_flash")
                  || !strcmp(v->storage->drive_type, "memory_stick")
                  || !strcmp(v->storage->drive_type, "smart_media")
                  || !strcmp(v->storage->drive_type, "sd_mmc")
                  || !strncmp(v->storage->drive_type, "flash", 5))
           icon = "media-flash";
+        else // XXX: fallback if we don't know
+          icon = "media-floppy";
      }
    if (icon) eina_stringshare_replace(&v->icon, icon);
 

-- 


Reply via email to