Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
kdebase3
make-wallpapers-hideable.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File make-wallpapers-hideable.diff of Package kdebase3
Index: kcontrol/background/bgdialog.cpp ================================================================================ --- kcontrol/background/bgdialog.cpp +++ kcontrol/background/bgdialog.cpp @@ -479,14 +479,23 @@ //search for .desktop files before searching for images without .desktop files QStringList lst = m_pDirs->findAllResources("wallpaper", "*desktop", false, true); QStringList files; + QStringList hiddenfiles; for (QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it) { KSimpleConfig fileConfig(*it); fileConfig.setGroup("Wallpaper"); + int slash = (*it).findRev('/') + 1; + QString directory = (*it).left(slash); + QString imageCaption = fileConfig.readEntry("Name"); QString fileName = fileConfig.readEntry("File"); + if (fileConfig.readBoolEntry("Hidden",false)) { + hiddenfiles.append(directory + fileName); + continue; + } + if (imageCaption.isEmpty()) { imageCaption = fileName; @@ -504,9 +513,8 @@ rs = imageCaption + " (" + QString::number(n) + ')'; lrs = rs.lower(); } - int slash = (*it).findRev('/') + 1; - QString directory = (*it).left(slash); bool canLoadScaleable = false; + #ifdef HAVE_LIBART canLoadScaleable = true; #endif @@ -520,7 +528,7 @@ lst = m_pDirs->findAllResources("wallpaper", "*", false, true); for (QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it) { - if ( !(*it).endsWith(".desktop") && files.grep(*it).empty() ) { + if ( !(*it).endsWith(".desktop") && files.grep(*it).empty() && hiddenfiles.grep(*it).empty() ) { // First try to see if we have a comment describing the image. If we do // just use the first line of said comment. KFileMetaInfo metaInfo(*it);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor