Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
kcm_gtk
fix-listing.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-listing.diff of Package kcm_gtk
--- kcm_gtk/kcmgtk.cpp 2006/11/02 14:59:22 1.7 +++ kcm_gtk/kcmgtk.cpp 2006/11/03 15:38:55 @@ -216,9 +216,8 @@ void KcmGtk::load() { parser.parse(QDir::homeDirPath() + "/.gtkrc-2.0"); - - bool usingQtEngine = false; - widget->styleBox->setCurrentText(""); + + QString style = "QtCurve"; if (!parser.style.isEmpty()) { for ( QMapIterator<QString, QString> it = themes.begin(); it != themes.end(); ++it ) @@ -226,14 +225,15 @@ if (it.data() != parser.style) continue; - if (it.key() == "Qt") - usingQtEngine = true; - - widget->styleBox->setCurrentText(it.key()); + style = it.key(); } } - else - usingQtEngine = true; + + for (int i=0;i<widget->styleBox->count();i++) + if (widget->styleBox->text(i)==style) { + widget->styleBox->setCurrentItem(i); + break; + } if (!parser.font.isEmpty()) {
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