|
|
@ -234,13 +234,15 @@ void KcmGtk::getInstalledThemes()
|
|
|
|
|
|
|
|
|
|
|
|
bool installed = false;
|
|
|
|
bool installed = false;
|
|
|
|
widget->styleBox->clear();
|
|
|
|
widget->styleBox->clear();
|
|
|
|
TQStringList otherStyles = themes.keys();
|
|
|
|
if(!themes.empty()) {
|
|
|
|
if(!otherStyles.empty()) {
|
|
|
|
TQStringList otherStyles = themes.keys();
|
|
|
|
otherStyles.remove(otherStyles.find("Qt"));
|
|
|
|
if(otherStyles.find("Qt")!=otherStyles.end()) {
|
|
|
|
|
|
|
|
otherStyles.remove(otherStyles.find("Qt"));
|
|
|
|
|
|
|
|
}
|
|
|
|
installed = !otherStyles.empty();
|
|
|
|
installed = !otherStyles.empty();
|
|
|
|
}
|
|
|
|
if(installed) {
|
|
|
|
if(installed) {
|
|
|
|
widget->styleBox->insertStringList(otherStyles);
|
|
|
|
widget->styleBox->insertStringList(otherStyles);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
widget->styleKde->setEnabled(installed);
|
|
|
|
widget->styleKde->setEnabled(installed);
|
|
|
|
widget->styleBox->setEnabled(installed);
|
|
|
|
widget->styleBox->setEnabled(installed);
|
|
|
@ -269,13 +271,15 @@ void KcmGtk::getInstalledThemes()
|
|
|
|
|
|
|
|
|
|
|
|
bool gtk3installed = false;
|
|
|
|
bool gtk3installed = false;
|
|
|
|
widget->styleBox3->clear();
|
|
|
|
widget->styleBox3->clear();
|
|
|
|
TQStringList otherGtk3Styles = gtk3Themes.keys();
|
|
|
|
if(!gtk3Themes.empty()) {
|
|
|
|
if(!otherGtk3Styles.empty()) {
|
|
|
|
TQStringList otherGtk3Styles = gtk3Themes.keys();
|
|
|
|
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk"));
|
|
|
|
if(otherGtk3Styles.find("tdegtk")!=otherGtk3Styles.end()) {
|
|
|
|
|
|
|
|
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk"));
|
|
|
|
|
|
|
|
}
|
|
|
|
gtk3installed = !otherGtk3Styles.empty();
|
|
|
|
gtk3installed = !otherGtk3Styles.empty();
|
|
|
|
}
|
|
|
|
if(gtk3installed) {
|
|
|
|
if(gtk3installed) {
|
|
|
|
widget->styleBox3->insertStringList(otherGtk3Styles);
|
|
|
|
widget->styleBox3->insertStringList(otherGtk3Styles);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
widget->styleKde3->setEnabled(gtk3installed);
|
|
|
|
widget->styleKde3->setEnabled(gtk3installed);
|
|
|
|
widget->styleBox3->setEnabled(gtk3installed);
|
|
|
|
widget->styleBox3->setEnabled(gtk3installed);
|
|
|
|