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-10-25 18:01:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kde-gtk-config5 (Old)
 and      /work/SRC/openSUSE:Factory/.kde-gtk-config5.new.24901 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kde-gtk-config5"

Wed Oct 25 18:01:16 2023 rev:155 rq:1120066 version:5.27.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/kde-gtk-config5/kde-gtk-config5.changes  
2023-09-14 16:24:51.344846164 +0200
+++ 
/work/SRC/openSUSE:Factory/.kde-gtk-config5.new.24901/kde-gtk-config5.changes   
    2023-10-25 18:01:25.783354162 +0200
@@ -1,0 +2,11 @@
+Tue Oct 24 14:24:04 UTC 2023 - Fabian Vogt <[email protected]>
+
+- Update to 5.27.9
+  * New bugfix release
+  * For more details please see:
+  * https://kde.org/announcements/plasma/5/5.27.9
+- Changes since 5.27.8:
+  * kded/config_editor: make it compile with GLib < 2.74
+  * kded/config_editor: add a timer to reduce duplicate setting sync
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ kde-gtk-config5.spec ++++++
--- /var/tmp/diff_new_pack.pBnCSM/_old  2023-10-25 18:01:26.523381478 +0200
+++ /var/tmp/diff_new_pack.pBnCSM/_new  2023-10-25 18:01:26.527381626 +0200
@@ -18,7 +18,7 @@
 
 %bcond_without released
 Name:           kde-gtk-config5
-Version:        5.27.8
+Version:        5.27.9
 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.8.tar.xz -> kde-gtk-config-5.27.9.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kde-gtk-config-5.27.8/CMakeLists.txt 
new/kde-gtk-config-5.27.9/CMakeLists.txt
--- old/kde-gtk-config-5.27.8/CMakeLists.txt    2023-09-12 12:30:33.000000000 
+0200
+++ new/kde-gtk-config-5.27.9/CMakeLists.txt    2023-10-24 14:55:53.000000000 
+0200
@@ -1,5 +1,5 @@
 project(kde-gtk-config)
-set(PROJECT_VERSION "5.27.8")
+set(PROJECT_VERSION "5.27.9")
 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.8/kded/config_editor/gsettings.cpp 
new/kde-gtk-config-5.27.9/kded/config_editor/gsettings.cpp
--- old/kde-gtk-config-5.27.8/kded/config_editor/gsettings.cpp  2023-09-12 
12:30:33.000000000 +0200
+++ new/kde-gtk-config-5.27.9/kded/config_editor/gsettings.cpp  2023-10-24 
14:55:53.000000000 +0200
@@ -7,6 +7,21 @@
 
 namespace GSettingsEditor
 {
+unsigned s_applyId = 0;
+
+#if GLIB_CHECK_VERSION(2, 74, 0)
+void applySettings(void *)
+#else
+int applySettings(void *)
+#endif
+{
+    g_settings_sync();
+    s_applyId = 0;
+#if !GLIB_CHECK_VERSION(2, 74, 0)
+    return G_SOURCE_REMOVE;
+#endif
+}
+
 bool checkParamExists(const char *paramName, const char *category)
 {
     GSettingsSchemaSource *gSettingsSchemaSource = 
g_settings_schema_source_get_default();
@@ -36,7 +51,13 @@
         g_settings_set_double(gsettings, paramName, paramValue.toDouble());
     }
 
-    g_settings_sync();
+    if (s_applyId == 0) {
+#if GLIB_CHECK_VERSION(2, 74, 0)
+        s_applyId = g_timeout_add_once(100, applySettings, nullptr);
+#else
+        s_applyId = g_timeout_add(100, applySettings, nullptr);
+#endif
+    }
 }
 
 void setValueAsEnum(const char *paramName, int paramValue, const char 
*category)
@@ -48,6 +69,13 @@
 
     g_autoptr(GSettings) gsettings = g_settings_new(category);
     g_settings_set_enum(gsettings, paramName, paramValue);
-    g_settings_sync();
+
+    if (s_applyId == 0) {
+#if GLIB_CHECK_VERSION(2, 74, 0)
+        s_applyId = g_timeout_add_once(100, applySettings, nullptr);
+#else
+        s_applyId = g_timeout_add(100, applySettings, nullptr);
+#endif
+    }
 }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kde-gtk-config-5.27.8/kded/config_editor/xsettings.cpp 
new/kde-gtk-config-5.27.9/kded/config_editor/xsettings.cpp
--- old/kde-gtk-config-5.27.8/kded/config_editor/xsettings.cpp  2023-09-12 
12:30:33.000000000 +0200
+++ new/kde-gtk-config-5.27.9/kded/config_editor/xsettings.cpp  2023-10-24 
14:55:53.000000000 +0200
@@ -11,13 +11,14 @@
 #include <QStandardPaths>
 
 #include <csignal>
+#include <glib.h>
 
 #include "config_editor/utils.h"
 
-namespace XSettingsEditor
-{
 namespace
 {
+unsigned s_applyId = 0;
+
 void replaceValueInXSettingsdContents(QString &xSettingsdContents, const 
QString &paramName, const QVariant &paramValue)
 {
     const QRegularExpression regExp(paramName + QStringLiteral(" 
[^\n]*($|\n)"));
@@ -57,7 +58,11 @@
     return xsettingsdPid.toInt();
 }
 
-void reloadXSettingsd()
+#if GLIB_CHECK_VERSION(2, 74, 0)
+void reloadXSettingsd(void *)
+#else
+int reloadXSettingsd(void *)
+#endif
 {
     pid_t xSettingsdPid = pidOfXSettingsd();
     if (xSettingsdPid == 0) {
@@ -65,10 +70,18 @@
     } else {
         kill(xSettingsdPid, SIGHUP);
     }
+
+    s_applyId = 0;
+#if !GLIB_CHECK_VERSION(2, 74, 0)
+    return G_SOURCE_REMOVE;
+#endif
 }
 
 }
 
+namespace XSettingsEditor
+{
+
 void setValue(const QString &paramName, const QVariant &paramValue)
 {
     QString configLocation = 
QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
@@ -86,7 +99,14 @@
     xSettingsdConfig.remove();
     xSettingsdConfig.open(QIODevice::WriteOnly | QIODevice::Text);
     xSettingsdConfig.write(xSettingsdConfigContents.toUtf8());
-    reloadXSettingsd();
+
+    if (s_applyId == 0) {
+#if GLIB_CHECK_VERSION(2, 74, 0)
+        s_applyId = g_timeout_add_once(100, reloadXSettingsd, nullptr);
+#else
+        s_applyId = g_timeout_add(100, reloadXSettingsd, nullptr);
+#endif
+    }
 }
 
 void unsetValue(const QString &paramName)

Reply via email to