summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2021-04-26 07:01:35 +0200
committerDave Andreoli <dave@gurumeditation.it>2021-04-26 07:01:35 +0200
commitfbaf294dfdda59a4b684638ac6016acf57e92f58 (patch)
treeb6f63998f6f8c93b0d59366240badbcc711b29fd
parent1e63c232bb60c360955f16490bd7f0efb6359739 (diff)
Better icons for flash and floppy
-rw-r--r--src/e_mod_places.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/src/e_mod_places.c b/src/e_mod_places.c
index 342d560..f1cbb98 100644
--- a/src/e_mod_places.c
+++ b/src/e_mod_places.c
@@ -398,21 +398,44 @@ places_fill_box(Evas_Object *main, Eina_Bool horiz)
398 f1 = "media"; f2 = "optical"; 398 f1 = "media"; f2 = "optical";
399 } 399 }
400 /* flash cards */ 400 /* flash cards */
401 else if (eina_streq(vol->drive_type, "sd_mmc") || 401 else if (eina_streq(vol->drive_type, "flash_mmc") ||
402 eina_streq(vol->drive_type, "sd_mmc") ||
402 eina_streq(vol->model, "SD/MMC")) 403 eina_streq(vol->model, "SD/MMC"))
403 { 404 {
404 f1 = "media"; f2 = "flash"; f3 = "sdmmc"; // NOTE sd-mmc in Oxigen :( 405 f1 = "media"; f2 = "flash"; f3 = "sdmmc"; // NOTE sd-mmc in Oxigen :(
405 } 406 }
406 else if (eina_streq(vol->drive_type, "memory_stick") || 407 else if (eina_streq(vol->drive_type, "flash_ms") ||
408 eina_streq(vol->drive_type, "memory_stick") ||
407 eina_streq(vol->model, "MS/MS-Pro")) 409 eina_streq(vol->model, "MS/MS-Pro"))
408 { 410 {
409 f1 = "media"; f2 = "flash"; f3 = "ms"; // NOTE memory-stick in Oxigen :( 411 f1 = "media"; f2 = "flash"; f3 = "ms"; // NOTE memory-stick in Oxigen :(
410 } 412 }
413 else if (eina_streq(vol->drive_type, "flash_cf"))
414 {
415 f1 = "media"; f2 = "flash"; f3 = "cf";
416 }
417 else if (eina_streq(vol->drive_type, "flash_sd"))
418 {
419 f1 = "media"; f2 = "flash"; f3 = "sd";
420 }
421 else if (eina_streq(vol->drive_type, "flash_sm"))
422 {
423 f1 = "media"; f2 = "flash"; f3 = "sm";
424 }
425 else if (eina_str_has_prefix(vol->drive_type, "flash"))
426 {
427 f1 = "media"; f2 = "flash";
428 }
411 /* iPods */ 429 /* iPods */
412 else if (eina_streq(vol->model, "iPod")) 430 else if (eina_streq(vol->model, "iPod"))
413 { 431 {
414 f1 = "multimedia-player"; f2 = "apple"; f3 = "ipod"; 432 f1 = "multimedia-player"; f2 = "apple"; f3 = "ipod";
415 } 433 }
434 /* Floppy disks */
435 else if (eina_str_has_prefix(vol->drive_type, "floppy"))
436 {
437 f1 = "media"; f2 = "floppy";
438 }
416 /* generic usb drives */ 439 /* generic usb drives */
417 else if (eina_streq(vol->bus, "usb")) 440 else if (eina_streq(vol->bus, "usb"))
418 { 441 {