Adjusted to new normalized device icon names in tdelibs.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 5 years ago
parent b53ebde96c
commit d0f177af64
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -212,12 +212,12 @@ void KMountManGUI::addItemToMountList( TQListView *lst, fsData &fs ) {
TQString id = fs.name().left(7); // only works assuming devices start with "/dev/XX"
TQPixmap *icon = 0;
if ( id == "/dev/fd") {
icon = new TQPixmap( LOADICON( mtd ? "media-floppy-3_5-mounted" : "media-floppy-3_5" ) );
icon = new TQPixmap( LOADICON( mtd ? "media-floppy-3_5-mounted" : "media-floppy-3_5-unmounted" ) );
} else if ( id == "/dev/cd" || fs.type() == "iso9660" ) {
icon = new TQPixmap( LOADICON( mtd ? "media-optical-cdrom-mounted" : "media-optical-cdrom" ) );
icon = new TQPixmap( LOADICON( mtd ? "media-optical-cdrom-mounted" : "media-optical-cdrom-unmounted" ) );
} else if ( fs.type() == "nfs" || fs.type() == "smbfs" ) {
icon = new TQPixmap( LOADICON( mtd ? "nfs_mount" : "nfs_unmount" ) );
} else icon = new TQPixmap( LOADICON( mtd ? "drive-harddisk-mounted" : "drive-harddisk" ) );
icon = new TQPixmap( LOADICON( mtd ? "nfs-mounted" : "nfs-unmounted" ) );
} else icon = new TQPixmap( LOADICON( mtd ? "drive-harddisk-mounted" : "drive-harddisk-unmounted" ) );
item->setPixmap( 0, *icon );
delete icon;

@ -84,7 +84,7 @@ Please note: The sed-command is &quot;s/search/repleace/&quot;, so you have to e
<action name="sample_newmount" >
<title>Mount</title>
<tooltip>Mount a new filesystem.</tooltip>
<icon>hdd_mount</icon>
<icon>hdd-mounted</icon>
<category>System</category>
<command run_as="root" executionmode="collect_output" >mount -t %_Ask(&quot;Filesystem Type?&quot;)% %_Ask(&quot;Device ?&quot;)% %_Ask(&quot;Mount Point ?&quot;)%</command>
<defaultshortcut>Alt+Ctrl+M</defaultshortcut>
@ -296,7 +296,7 @@ You need krusader compiled with javascript support and iconv installed.</descrip
<action name="Jscript_root-mount" >
<title>Javascript, mount as root</title>
<tooltip>Mounts a device with root-privileges</tooltip>
<icon>hdd_mount</icon>
<icon>hdd-mounted</icon>
<category>System</category>
<description>Requirements:
You need krusader compiled with javascript support.</description>

Loading…
Cancel
Save