summaryrefslogtreecommitdiffstats
path: root/kcm_gtk
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-09-12 16:19:02 +0200
committerSlávek Banko <[email protected]>2015-09-12 16:19:28 +0200
commite50a6aceddb2fe191fe56db79ee6c569f2f715a7 (patch)
tree383528f2469112fa31d46f1b8948bd90cb113e4e /kcm_gtk
parentae1495417eb59a89c07d167a9dc73d4b9dc09a19 (diff)
downloadgtk-qt-engine-e50a6aceddb2fe191fe56db79ee6c569f2f715a7.tar.gz
gtk-qt-engine-e50a6aceddb2fe191fe56db79ee6c569f2f715a7.zip
Add Default as a valid option for GTK3 themer14.0.2
This resolves Bug 2478 Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit f92343d24d0c6813ed33765f065c34f79a4e66b8)
Diffstat (limited to 'kcm_gtk')
-rw-r--r--kcm_gtk/kcmgtk.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kcm_gtk/kcmgtk.cpp b/kcm_gtk/kcmgtk.cpp
index 137bd0c..0667731 100644
--- a/kcm_gtk/kcmgtk.cpp
+++ b/kcm_gtk/kcmgtk.cpp
@@ -267,17 +267,17 @@ void KcmGtk::getInstalledThemes()
}
}
- bool gtk3installed = false;
+ bool gtk3installed = !gtk3Themes.empty();
widget->styleBox3->clear();
- if(!gtk3Themes.empty()) {
+ if(gtk3installed) {
TQStringList otherGtk3Styles = gtk3Themes.keys();
if(otherGtk3Styles.find("tdegtk")!=otherGtk3Styles.end()) {
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk"));
}
- gtk3installed = !otherGtk3Styles.empty();
- if(gtk3installed) {
- widget->styleBox3->insertStringList(otherGtk3Styles);
+ if(otherGtk3Styles.find("Default")==otherGtk3Styles.end()) {
+ otherGtk3Styles.prepend("Default");
}
+ widget->styleBox3->insertStringList(otherGtk3Styles);
}
widget->styleKde3->setEnabled(gtk3installed);
widget->styleBox3->setEnabled(gtk3installed);