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.
This commit is contained in:
parent
8dcf7a8b0a
commit
f13b79c02b
|
@ -100,12 +100,17 @@ _e_fm2_device_volume_setup(E_Volume *v)
|
||||||
icon = "media-floppy";
|
icon = "media-floppy";
|
||||||
else if (!strcmp(v->storage->drive_type, "tape"))
|
else if (!strcmp(v->storage->drive_type, "tape"))
|
||||||
icon = "media-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")
|
else if (!strcmp(v->storage->drive_type, "compact_flash")
|
||||||
|| !strcmp(v->storage->drive_type, "memory_stick")
|
|| !strcmp(v->storage->drive_type, "memory_stick")
|
||||||
|| !strcmp(v->storage->drive_type, "smart_media")
|
|| !strcmp(v->storage->drive_type, "smart_media")
|
||||||
|| !strcmp(v->storage->drive_type, "sd_mmc")
|
|| !strcmp(v->storage->drive_type, "sd_mmc")
|
||||||
|| !strncmp(v->storage->drive_type, "flash", 5))
|
|| !strncmp(v->storage->drive_type, "flash", 5))
|
||||||
icon = "media-flash";
|
icon = "media-flash";
|
||||||
|
else // XXX: fallback if we don't know
|
||||||
|
icon = "media-floppy";
|
||||||
}
|
}
|
||||||
if (icon) eina_stringshare_replace(&v->icon, icon);
|
if (icon) eina_stringshare_replace(&v->icon, icon);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue