summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-03-02 09:10:12 -0600
committerSlávek Banko <slavek.banko@axis.cz>2015-03-04 23:49:15 +0100
commit394f67b84c6fb683167f89cc204ad5f305af1f2b (patch)
tree3ece0c06f5c54427a1e107865c4609628709add4
parenteab791787c8d9e645c390646285f55ae965a1978 (diff)
downloadtdelibs-394f67b84c6fb683167f89cc204ad5f305af1f2b.tar.gz
tdelibs-394f67b84c6fb683167f89cc204ad5f305af1f2b.zip
Rename most device icons to comply with XDG standards
(cherry picked from commit 86686421b5b46ca556cf11f71cc5a0098bbe4970)
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp2
-rw-r--r--tdecore/tdehw/tdestoragedevice.cpp32
2 files changed, 17 insertions, 17 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 7ddd46da1..209280677 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -4140,7 +4140,7 @@ TQPixmap TDEHardwareDevices::getDeviceTypeIconFromType(TDEGenericDeviceType::TDE
ret = DesktopIcon("kcmpci", size); // FIXME
}
else if (query == TDEGenericDeviceType::Disk) {
- ret = DesktopIcon("hdd_unmount", size);
+ ret = DesktopIcon("drive-harddisk", size);
}
else if (query == TDEGenericDeviceType::SCSI) {
ret = DesktopIcon("kcmscsi", size);
diff --git a/tdecore/tdehw/tdestoragedevice.cpp b/tdecore/tdehw/tdestoragedevice.cpp
index 70258e436..6bde78faf 100644
--- a/tdecore/tdehw/tdestoragedevice.cpp
+++ b/tdecore/tdehw/tdestoragedevice.cpp
@@ -621,55 +621,55 @@ TQString TDEStorageDevice::friendlyDeviceType() {
}
TQPixmap TDEStorageDevice::icon(TDEIcon::StdSizes size) {
- TQPixmap ret = DesktopIcon("hdd_unmount", size);
+ TQPixmap ret = DesktopIcon("drive-harddisk", size);
if (isDiskOfType(TDEDiskDeviceType::Floppy)) {
- ret = DesktopIcon("3floppy_unmount", size);
+ ret = DesktopIcon("media-floppy-3_5", size);
}
if (isDiskOfType(TDEDiskDeviceType::Optical)) {
- ret = DesktopIcon("cdrom_unmount", size);
+ ret = DesktopIcon("media-optical-cdrom", size);
}
if (isDiskOfType(TDEDiskDeviceType::CDROM)) {
- ret = DesktopIcon("cdrom_unmount", size);
+ ret = DesktopIcon("media-optical-cdrom", size);
}
if (isDiskOfType(TDEDiskDeviceType::CDRW)) {
- ret = DesktopIcon("cdwriter_unmount", size);
+ ret = DesktopIcon("media-optical-cdwriter", size);
}
if (isDiskOfType(TDEDiskDeviceType::DVDROM)) {
- ret = DesktopIcon("dvd_unmount", size);
+ ret = DesktopIcon("media-optical-dvd", size);
}
if (isDiskOfType(TDEDiskDeviceType::DVDRW)) {
- ret = DesktopIcon("dvd_unmount", size);
+ ret = DesktopIcon("media-optical-dvd", size);
}
if (isDiskOfType(TDEDiskDeviceType::DVDRAM)) {
- ret = DesktopIcon("dvd_unmount", size);
+ ret = DesktopIcon("media-optical-dvd", size);
}
if (isDiskOfType(TDEDiskDeviceType::Zip)) {
- ret = DesktopIcon("zip_unmount", size);
+ ret = DesktopIcon("media-floppy-zip", size);
}
if (isDiskOfType(TDEDiskDeviceType::Tape)) {
- ret = DesktopIcon("tape_unmount", size);
+ ret = DesktopIcon("media-tape", size);
}
if (isDiskOfType(TDEDiskDeviceType::Camera)) {
ret = DesktopIcon("camera_unmount", size);
}
if (isDiskOfType(TDEDiskDeviceType::HDD)) {
- ret = DesktopIcon("hdd_unmount", size);
+ ret = DesktopIcon("drive-harddisk", size);
if (checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) {
- ret = DesktopIcon("usbpendrive_unmount", size);
+ ret = DesktopIcon("media-flash-usb", size);
}
if (isDiskOfType(TDEDiskDeviceType::CompactFlash)) {
- ret = DesktopIcon("compact_flash_unmount", size);
+ ret = DesktopIcon("media-flash-compact_flash", size);
}
if (isDiskOfType(TDEDiskDeviceType::MemoryStick)) {
- ret = DesktopIcon("memory_stick_unmount", size);
+ ret = DesktopIcon("media-flash-memory_stick", size);
}
if (isDiskOfType(TDEDiskDeviceType::SmartMedia)) {
- ret = DesktopIcon("smart_media_unmount", size);
+ ret = DesktopIcon("media-flash-smart_media", size);
}
if (isDiskOfType(TDEDiskDeviceType::SDMMC)) {
- ret = DesktopIcon("sd_mmc_unmount", size);
+ ret = DesktopIcon("media-flash-sd_mmc", size);
}
}