Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kde-gtk-config5 for openSUSE:Factory 
checked in at 2023-06-21 22:37:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kde-gtk-config5 (Old)
 and      /work/SRC/openSUSE:Factory/.kde-gtk-config5.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kde-gtk-config5"

Wed Jun 21 22:37:54 2023 rev:152 rq:1094175 version:5.27.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/kde-gtk-config5/kde-gtk-config5.changes  
2023-05-11 12:32:19.722361748 +0200
+++ 
/work/SRC/openSUSE:Factory/.kde-gtk-config5.new.15902/kde-gtk-config5.changes   
    2023-06-21 22:38:14.429786682 +0200
@@ -1,0 +2,11 @@
+Tue Jun 20 17:14:59 UTC 2023 - Fabian Vogt <[email protected]>
+
+- Update to 5.27.6
+  * New bugfix release
+  * For more details please see:
+  * https://kde.org/announcements/plasma/5/5.27.6
+- Changes since 5.27.5:
+  * gsettings: use `const char*` directly
+  * kded: update `scaling-factor` when setting global scale
+
+-------------------------------------------------------------------

Old:
----
  kde-gtk-config-5.27.5.tar.xz
  kde-gtk-config-5.27.5.tar.xz.sig

New:
----
  kde-gtk-config-5.27.6.tar.xz
  kde-gtk-config-5.27.6.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kde-gtk-config5.spec ++++++
--- /var/tmp/diff_new_pack.5fJaiO/_old  2023-06-21 22:38:18.137808997 +0200
+++ /var/tmp/diff_new_pack.5fJaiO/_new  2023-06-21 22:38:18.141809021 +0200
@@ -18,7 +18,7 @@
 
 %bcond_without released
 Name:           kde-gtk-config5
-Version:        5.27.5
+Version:        5.27.6
 Release:        0
 Summary:        Daemon for GTK2 and GTK3 Applications Appearance Under KDE
 License:        GPL-3.0-or-later AND LGPL-3.0-or-later

++++++ kde-gtk-config-5.27.5.tar.xz -> kde-gtk-config-5.27.6.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kde-gtk-config-5.27.5/CMakeLists.txt 
new/kde-gtk-config-5.27.6/CMakeLists.txt
--- old/kde-gtk-config-5.27.5/CMakeLists.txt    2023-05-09 13:36:30.000000000 
+0200
+++ new/kde-gtk-config-5.27.6/CMakeLists.txt    2023-06-20 15:31:54.000000000 
+0200
@@ -1,5 +1,5 @@
 project(kde-gtk-config)
-set(PROJECT_VERSION "5.27.5")
+set(PROJECT_VERSION "5.27.6")
 cmake_minimum_required(VERSION 3.16)
 
 set(QT_MIN_VERSION "5.15.2")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kde-gtk-config-5.27.5/kconf_update/gtktheme.cpp 
new/kde-gtk-config-5.27.6/kconf_update/gtktheme.cpp
--- old/kde-gtk-config-5.27.5/kconf_update/gtktheme.cpp 2023-05-09 
13:36:30.000000000 +0200
+++ new/kde-gtk-config-5.27.6/kconf_update/gtktheme.cpp 2023-06-20 
15:31:54.000000000 +0200
@@ -43,7 +43,7 @@
         || currentGtk3Theme == QStringLiteral("oxygen-gtk") //
         || currentGtk3Theme == QStringLiteral("BreezyGTK") //
         || currentGtk3Theme == QStringLiteral("Orion")) {
-        GSettingsEditor::setValue(QStringLiteral("gtk-theme"), 
QStringLiteral("Breeze"));
+        GSettingsEditor::setValue("gtk-theme", QStringLiteral("Breeze"));
         SettingsIniEditor::setValue(QStringLiteral("gtk-theme-name"), 
QStringLiteral("Breeze"), 3);
         XSettingsEditor::setValue(QStringLiteral("Net/ThemeName"), 
QStringLiteral("Breeze"));
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kde-gtk-config-5.27.5/kded/config_editor/gsettings.cpp 
new/kde-gtk-config-5.27.6/kded/config_editor/gsettings.cpp
--- old/kde-gtk-config-5.27.5/kded/config_editor/gsettings.cpp  2023-05-09 
13:36:30.000000000 +0200
+++ new/kde-gtk-config-5.27.6/kded/config_editor/gsettings.cpp  2023-06-20 
15:31:54.000000000 +0200
@@ -7,45 +7,45 @@
 
 namespace GSettingsEditor
 {
-bool checkParamExists(const QString &paramName, const QString &category)
+bool checkParamExists(const char *paramName, const char *category)
 {
     GSettingsSchemaSource *gSettingsSchemaSource = 
g_settings_schema_source_get_default();
-    g_autoptr(GSettingsSchema) gSettingsSchema = 
g_settings_schema_source_lookup(gSettingsSchemaSource, 
category.toUtf8().constData(), true);
+    g_autoptr(GSettingsSchema) gSettingsSchema = 
g_settings_schema_source_lookup(gSettingsSchemaSource, category, true);
 
-    return gSettingsSchema && g_settings_schema_has_key(gSettingsSchema, 
paramName.toUtf8().constData());
+    return gSettingsSchema && g_settings_schema_has_key(gSettingsSchema, 
paramName);
 }
 
-void setValue(const QString &paramName, const QVariant &paramValue, const 
QString &category)
+void setValue(const char *paramName, const QVariant &paramValue, const char 
*category)
 {
     if (!checkParamExists(paramName, category)) {
         Q_ASSERT_X(false, "gsettings", QLatin1String("%1 doesn't exist in 
%2").arg(paramName, category).toLatin1().constData());
         return;
     }
 
-    g_autoptr(GSettings) gsettings = 
g_settings_new(category.toUtf8().constData());
+    g_autoptr(GSettings) gsettings = g_settings_new(category);
 
     if (paramValue.type() == QVariant::Type::String) {
-        g_settings_set_string(gsettings, paramName.toUtf8().constData(), 
paramValue.toString().toUtf8().constData());
+        g_settings_set_string(gsettings, paramName, 
paramValue.toString().toUtf8().constData());
     } else if (paramValue.type() == QVariant::Type::Int) {
-        g_settings_set_int(gsettings, paramName.toUtf8().constData(), 
paramValue.toInt());
+        g_settings_set_int(gsettings, paramName, paramValue.toInt());
     } else if (paramValue.type() == QVariant::Type::Bool) {
-        g_settings_set_boolean(gsettings, paramName.toUtf8().constData(), 
paramValue.toBool());
+        g_settings_set_boolean(gsettings, paramName, paramValue.toBool());
     } else if (paramValue.type() == QVariant::Type::Double) {
-        g_settings_set_double(gsettings, paramName.toUtf8().constData(), 
paramValue.toDouble());
+        g_settings_set_double(gsettings, paramName, paramValue.toDouble());
     }
 
     g_settings_sync();
 }
 
-void setValueAsEnum(const QString &paramName, int paramValue, const QString 
&category)
+void setValueAsEnum(const char *paramName, int paramValue, const char 
*category)
 {
     if (!checkParamExists(paramName, category)) {
         Q_ASSERT_X(false, "gsettings", QLatin1String("%1 doesn't exist in 
%2").arg(paramName, category).toLatin1().constData());
         return;
     }
 
-    g_autoptr(GSettings) gsettings = 
g_settings_new(category.toUtf8().constData());
-    g_settings_set_enum(gsettings, paramName.toUtf8().constData(), paramValue);
+    g_autoptr(GSettings) gsettings = g_settings_new(category);
+    g_settings_set_enum(gsettings, paramName, paramValue);
     g_settings_sync();
 }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kde-gtk-config-5.27.5/kded/config_editor/gsettings.h 
new/kde-gtk-config-5.27.6/kded/config_editor/gsettings.h
--- old/kde-gtk-config-5.27.5/kded/config_editor/gsettings.h    2023-05-09 
13:36:30.000000000 +0200
+++ new/kde-gtk-config-5.27.6/kded/config_editor/gsettings.h    2023-06-20 
15:31:54.000000000 +0200
@@ -3,11 +3,10 @@
 
 #pragma once
 
-#include <QString>
 #include <QVariant>
 
 namespace GSettingsEditor
 {
-void setValue(const QString &paramName, const QVariant &paramValue, const 
QString &category = QStringLiteral("org.gnome.desktop.interface"));
-void setValueAsEnum(const QString &paramName, int paramValue, const QString 
&category = QStringLiteral("org.gnome.desktop.interface"));
+void setValue(const char *paramName, const QVariant &paramValue, const char 
*category = "org.gnome.desktop.interface");
+void setValueAsEnum(const char *paramName, int paramValue, const char 
*category = "org.gnome.desktop.interface");
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kde-gtk-config-5.27.5/kded/gtkconfig.cpp 
new/kde-gtk-config-5.27.6/kded/gtkconfig.cpp
--- old/kde-gtk-config-5.27.5/kded/gtkconfig.cpp        2023-05-09 
13:36:30.000000000 +0200
+++ new/kde-gtk-config-5.27.6/kded/gtkconfig.cpp        2023-06-20 
15:31:54.000000000 +0200
@@ -67,7 +67,7 @@
 void GtkConfig::setGtkTheme(const QString &themeName) const
 {
     Gtk2ConfigEditor::setValue(QStringLiteral("gtk-theme-name"), themeName);
-    GSettingsEditor::setValue(QStringLiteral("gtk-theme"), themeName);
+    GSettingsEditor::setValue("gtk-theme", themeName);
     SettingsIniEditor::setValue(QStringLiteral("gtk-theme-name"), themeName);
     XSettingsEditor::setValue(QStringLiteral("Net/ThemeName"), themeName);
 
@@ -89,7 +89,7 @@
 {
     const QString configFontName = configValueProvider->fontName();
     Gtk2ConfigEditor::setValue(QStringLiteral("gtk-font-name"), 
configFontName);
-    GSettingsEditor::setValue(QStringLiteral("font-name"), configFontName);
+    GSettingsEditor::setValue("font-name", configFontName);
     SettingsIniEditor::setValue(QStringLiteral("gtk-font-name"), 
configFontName);
     XSettingsEditor::setValue(QStringLiteral("Gtk/FontName"), configFontName);
 }
@@ -98,7 +98,7 @@
 {
     const QString iconThemeName = configValueProvider->iconThemeName();
     Gtk2ConfigEditor::setValue(QStringLiteral("gtk-icon-theme-name"), 
iconThemeName);
-    GSettingsEditor::setValue(QStringLiteral("icon-theme"), iconThemeName);
+    GSettingsEditor::setValue("icon-theme", iconThemeName);
     SettingsIniEditor::setValue(QStringLiteral("gtk-icon-theme-name"), 
iconThemeName);
     XSettingsEditor::setValue(QStringLiteral("Net/IconThemeName"), 
iconThemeName);
 }
@@ -107,7 +107,7 @@
 {
     const QString cursorThemeName = configValueProvider->cursorThemeName();
     Gtk2ConfigEditor::setValue(QStringLiteral("gtk-cursor-theme-name"), 
cursorThemeName);
-    GSettingsEditor::setValue(QStringLiteral("cursor-theme"), cursorThemeName);
+    GSettingsEditor::setValue("cursor-theme", cursorThemeName);
     SettingsIniEditor::setValue(QStringLiteral("gtk-cursor-theme-name"), 
cursorThemeName);
     XSettingsEditor::setValue(QStringLiteral("Gtk/CursorThemeName"), 
cursorThemeName);
 }
@@ -116,7 +116,7 @@
 {
     const int cursorSize = configValueProvider->cursorSize();
     Gtk2ConfigEditor::setValue(QStringLiteral("gtk-cursor-theme-size"), 
cursorSize);
-    GSettingsEditor::setValue(QStringLiteral("cursor-size"), cursorSize);
+    GSettingsEditor::setValue("cursor-size", cursorSize);
     SettingsIniEditor::setValue(QStringLiteral("gtk-cursor-theme-size"), 
cursorSize);
     XSettingsEditor::setValue(QStringLiteral("Gtk/CursorThemeSize"), 
cursorSize);
 }
@@ -143,7 +143,7 @@
 {
     const int toolbarStyle = configValueProvider->toolbarStyle();
     Gtk2ConfigEditor::setValue(QStringLiteral("gtk-toolbar-style"), 
toolbarStyle);
-    GSettingsEditor::setValueAsEnum(QStringLiteral("toolbar-style"), 
toolbarStyle);
+    GSettingsEditor::setValueAsEnum("toolbar-style", toolbarStyle);
     // Deprecated in GTK 4
     SettingsIniEditor::setValue(QStringLiteral("gtk-toolbar-style"), 
toolbarStyle, 3);
     XSettingsEditor::setValue(QStringLiteral("Gtk/ToolbarStyle"), 
toolbarStyle);
@@ -162,9 +162,9 @@
     const bool preferDarkTheme = configValueProvider->preferDarkTheme();
     
SettingsIniEditor::setValue(QStringLiteral("gtk-application-prefer-dark-theme"),
 preferDarkTheme);
     // 
https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/blob/master/headers/gdesktop-enums.h
-    GSettingsEditor::setValueAsEnum(QStringLiteral("color-scheme"),
+    GSettingsEditor::setValueAsEnum("color-scheme",
                                     preferDarkTheme ? 1 
/*G_DESKTOP_COLOR_SCHEME_PREFER_DARK*/ : 0 /*G_DESKTOP_COLOR_SCHEME_DEFAULT*/,
-                                    
QStringLiteral("org.gnome.desktop.interface"));
+                                    "org.gnome.desktop.interface");
 }
 
 void GtkConfig::setWindowDecorationsAppearance() const
@@ -180,7 +180,7 @@
 void GtkConfig::setWindowDecorationsButtonsOrder() const
 {
     const QString windowDecorationsButtonOrder = 
configValueProvider->windowDecorationsButtonsOrder();
-    GSettingsEditor::setValue(QStringLiteral("button-layout"), 
windowDecorationsButtonOrder, 
QStringLiteral("org.gnome.desktop.wm.preferences"));
+    GSettingsEditor::setValue("button-layout", windowDecorationsButtonOrder, 
"org.gnome.desktop.wm.preferences");
     SettingsIniEditor::setValue(QStringLiteral("gtk-decoration-layout"), 
windowDecorationsButtonOrder);
     XSettingsEditor::setValue(QStringLiteral("Gtk/DecorationLayout"), 
windowDecorationsButtonOrder);
 }
@@ -189,7 +189,7 @@
 {
     const bool enableAnimations = configValueProvider->enableAnimations();
     Gtk2ConfigEditor::setValue(QStringLiteral("gtk-enable-animations"), 
enableAnimations);
-    GSettingsEditor::setValue(QStringLiteral("enable-animations"), 
enableAnimations);
+    GSettingsEditor::setValue("enable-animations", enableAnimations);
     SettingsIniEditor::setValue(QStringLiteral("gtk-enable-animations"), 
enableAnimations);
     XSettingsEditor::setValue(QStringLiteral("Gtk/EnableAnimations"), 
enableAnimations);
     if (m_gsdXsettingsManager) {
@@ -199,8 +199,9 @@
 
 void GtkConfig::setGlobalScale() const
 {
-    const double scaleFactor = configValueProvider->x11GlobalScaleFactor();
-    XSettingsEditor::setValue(QStringLiteral("Gdk/WindowScalingFactor"), 
int(scaleFactor));
+    const int scaleFactor = configValueProvider->x11GlobalScaleFactor();
+    XSettingsEditor::setValue(QStringLiteral("Gdk/WindowScalingFactor"), 
scaleFactor);
+    GSettingsEditor::setValue("scaling-factor", scaleFactor); // For IntelliJ 
IDEA
 }
 
 void GtkConfig::setTextScale() const
@@ -229,7 +230,7 @@
     XSettingsEditor::unsetValue(QStringLiteral("Xft/DPI"));
     SettingsIniEditor::setValue(QStringLiteral("gtk-xft-dpi"), 
x11TextDpiAbsolute);
     XSettingsEditor::setValue(QStringLiteral("Gdk/UnscaledDPI"), 
x11TextDpiAbsolute / x11ScaleIntegerPart);
-    GSettingsEditor::setValue(QStringLiteral("text-scaling-factor"), 
waylandTextScaleFactor);
+    GSettingsEditor::setValue("text-scaling-factor", waylandTextScaleFactor);
 }
 
 void GtkConfig::setColors() const

Reply via email to