aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-04-10 17:50:57 +0900
committerChris Michael <cp.michael@samsung.com>2018-06-12 08:12:47 -0400
commit851d32450f31890155182a8cd0b4a9ffc62af8bd (patch)
tree22886988cb6cc44e4ab15c20abd51dac0ce4f25a
parente startup - support gnome autostart delay (diff)
downloadenlightenment-851d32450f31890155182a8cd0b4a9ffc62af8bd.tar.gz
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.
-rw-r--r--src/bin/e_fm_device.c5
1 files changed, 5 insertions, 0 deletions
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);