aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/desktopview
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-11 23:40:32 -0400
committerKen Moore <ken@pcbsd.org>2015-03-11 23:40:32 -0400
commit950c4ebc4343452dc6f99a9c74d71e4dba9d7eaa (patch)
tree9f88083114df480a5cd7b880752245cf3782cf73 /lumina-desktop/desktop-plugins/desktopview
parentConvert the windowImage routine to XCB from XLib, and set the desktop (system... (diff)
downloadlumina-950c4ebc4343452dc6f99a9c74d71e4dba9d7eaa.tar.gz
lumina-950c4ebc4343452dc6f99a9c74d71e4dba9d7eaa.tar.bz2
lumina-950c4ebc4343452dc6f99a9c74d71e4dba9d7eaa.zip
Just a bit of cleanup in libLumina and adjust the deskopview plugin a bit for non-valid *.desktop files.
Diffstat (limited to 'lumina-desktop/desktop-plugins/desktopview')
-rw-r--r--lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
index ce20c563..e13a1908 100644
--- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
@@ -54,15 +54,15 @@ void DesktopViewPlugin::updateContents(){
bool ok = false;
XDGDesktop desk = LXDG::loadDesktopFile(files[i].absoluteFilePath(), ok);
if(ok){
- it->setIcon( LXDG::findIcon(desk.icon,"") );
+ it->setIcon( LXDG::findIcon(desk.icon,"unknown") );
it->setText( desk.name );
}else{
//Revert back to a standard file handling
- it->setIcon( LXDG::findMimeIcon(files[i].suffix()) );
+ it->setIcon( LXDG::findMimeIcon(files[i].fileName()) );
it->setText( files[i].fileName() );
}
}else{
- it->setIcon( LXDG::findMimeIcon(files[i].suffix()) );
+ it->setIcon( LXDG::findMimeIcon( files[i].fileName() ) );
it->setText( files[i].fileName() );
}
list->addItem(it);
bgstack15