summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2017-02-10 22:41:16 (GMT)
committerElvis Angelaccio <elvis.angelaccio@kde.org>2017-02-10 22:49:15 (GMT)
commit4a06c4d34f2dd8859058618b1dbe9dbd6df9e9b8 (patch)
tree137e7ee9443d7706b8dee792ab89bf7d49755e2d
parenteeedc47c88860408b9d029043d0a122e672330f2 (diff)
Fix gtk-primary-button-warps-slider with GTK 2
Summary: Replace true/false with 1/0. The former works only with GTK 3, but breaks with GTK 2 apps. BUG: 376273 FIXED-IN: 5.8.6 Test Plan: Tested with inkscape (which is gtk2); still works with gtk3 apps. Reviewers: apol, broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4557
-rw-r--r--src/abstractappearance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abstractappearance.cpp b/src/abstractappearance.cpp
index bb25031..d67252c 100644
--- a/src/abstractappearance.cpp
+++ b/src/abstractappearance.cpp
@@ -32,7 +32,7 @@ void AbstractAppearance::setIconFallback(const QString& fall) { m_settings["icon
void AbstractAppearance::setFont(const QString& fo) { m_settings["font"] = fo;}
void AbstractAppearance::setShowIconsInButtons(bool show) { m_settings["show_icons_buttons"] = show ? "1" : "0"; }
void AbstractAppearance::setShowIconsInMenus(bool show) { m_settings["show_icons_menus"] = show ? "1" : "0"; }
-void AbstractAppearance::setPrimaryButtonWarpsSlider(bool enabled) { m_settings["primary_button_warps_slider"] = enabled ? "true" : "false"; }
+void AbstractAppearance::setPrimaryButtonWarpsSlider(bool enabled) { m_settings["primary_button_warps_slider"] = enabled ? "1" : "0"; }
void AbstractAppearance::setToolbarStyle(const QString& toolbar_style) { m_settings["toolbar_style"] = toolbar_style; }
// GETTERS
@@ -45,7 +45,7 @@ QString AbstractAppearance::getThemeGtk3() const { return m_settings["themegtk3"
QString AbstractAppearance::getToolbarStyle() const { return m_settings["toolbar_style"]; }
bool AbstractAppearance::getShowIconsInButtons() const { return m_settings["show_icons_buttons"]=="1"; }
bool AbstractAppearance::getShowIconsInMenus() const { return m_settings["show_icons_menus"]=="1"; }
-bool AbstractAppearance::getPrimaryButtonWarpsSlider() const { return m_settings["primary_button_warps_slider"] == "true"; }
+bool AbstractAppearance::getPrimaryButtonWarpsSlider() const { return m_settings["primary_button_warps_slider"] == "1"; }
QRegExp valueRx(" *([a-zA-Z\\-_]+) *= *\"?([^\"\\n]+)\"?", Qt::CaseSensitive, QRegExp::RegExp2);
QMap<QString,QString> AbstractAppearance::readSettingsTuples(QIODevice* device)