From ee8779f4945ac01fdd45011d025877bcd5dc0073 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Wed, 28 Jun 2017 12:19:05 +0900 Subject: [PATCH] Fix for gtk theme with xfce --- app/src/handlers/systemhandler.cpp | 8 ++++---- app/src/handlers/systemhandler.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/handlers/systemhandler.cpp b/app/src/handlers/systemhandler.cpp index dc4b823..6454008 100644 --- a/app/src/handlers/systemhandler.cpp +++ b/app/src/handlers/systemhandler.cpp @@ -113,7 +113,7 @@ bool SystemHandler::isApplicableType(const QString &installType) const applicableTypes << "wallpapers" << "icons" << "cursors" - << "gtk3_themes" + << "gtk2_themes" << "xfwm4_themes"; } @@ -171,8 +171,8 @@ bool SystemHandler::applyFile(const QString &path, const QString &installType) c else if (installType == "cursors") { return applyXfceCursor(themeName); } - else if (installType == "gtk3_themes") { - return applyXfceGtk3Theme(themeName); + else if (installType == "gtk2_themes") { + return applyXfceGtk2Theme(themeName); } else if (installType == "xfwm4_themes") { return applyXfceXfwm4Theme(themeName); @@ -328,7 +328,7 @@ bool SystemHandler::applyXfceCursor(const QString &themeName) const return setConfigWithXfconf("xsettings", "/Gtk/CursorThemeName", themeName); } -bool SystemHandler::applyXfceGtk3Theme(const QString &themeName) const +bool SystemHandler::applyXfceGtk2Theme(const QString &themeName) const { return setConfigWithXfconf("xsettings", "/Net/ThemeName", themeName); } diff --git a/app/src/handlers/systemhandler.h b/app/src/handlers/systemhandler.h index 9b80705..8a34619 100644 --- a/app/src/handlers/systemhandler.h +++ b/app/src/handlers/systemhandler.h @@ -41,7 +41,7 @@ private: bool applyXfceWallpaper(const QString &path) const; bool applyXfceIcon(const QString &themeName) const; bool applyXfceCursor(const QString &themeName) const; - bool applyXfceGtk3Theme(const QString &themeName) const; + bool applyXfceGtk2Theme(const QString &themeName) const; bool applyXfceXfwm4Theme(const QString &themeName) const; #endif }; -- GitLab