Changeset View
Changeset View
Standalone View
Standalone View
kded/configeditor.cpp
Show All 39 Lines | |||||
40 | 40 | | |||
41 | static void reloadGtk2Apps(); | 41 | static void reloadGtk2Apps(); | ||
42 | static void reloadXSettingsd(); | 42 | static void reloadXSettingsd(); | ||
43 | 43 | | |||
44 | static QString readFileContents(QFile >krc); | 44 | static QString readFileContents(QFile >krc); | ||
45 | static pid_t pidOfXSettingsd(); | 45 | static pid_t pidOfXSettingsd(); | ||
46 | 46 | | |||
47 | 47 | | |||
48 | void ConfigEditor::setGtk3ConfigValueDconf(const QString ¶mName, const QString ¶mValue) | 48 | void ConfigEditor::setGtk3ConfigValueDconf(const QString ¶mName, const QString ¶mValue, const QString &category) | ||
49 | { | 49 | { | ||
50 | g_autoptr(GSettings) gsettings = g_settings_new("org.gnome.desktop.interface"); | 50 | g_autoptr(GSettings) gsettings = g_settings_new(category.toUtf8().constData()); | ||
51 | g_settings_set_string(gsettings, paramName.toUtf8().constData(), paramValue.toUtf8().constData()); | 51 | g_settings_set_string(gsettings, paramName.toUtf8().constData(), paramValue.toUtf8().constData()); | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | void ConfigEditor::setGtk3ConfigValueSettingsIni(const QString ¶mName, const QString ¶mValue) | 54 | void ConfigEditor::setGtk3ConfigValueSettingsIni(const QString ¶mName, const QString ¶mValue) | ||
55 | { | 55 | { | ||
56 | QString configLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); | 56 | QString configLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); | ||
57 | QString gtk3ConfigPath = configLocation + QStringLiteral("/gtk-3.0/settings.ini"); | 57 | QString gtk3ConfigPath = configLocation + QStringLiteral("/gtk-3.0/settings.ini"); | ||
58 | 58 | | |||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |