diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-04-09 23:09:30 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-04-10 00:34:19 +0200 |
commit | 77b7ea74fe6e2f742bed3028f74619419ff2b2dc (patch) | |
tree | 7d51db62e4a3d76b580863a982d1f81d2d4ae8bc /kde-plasma/kde-gtk-config | |
parent | dev-python/mkdocs-material: add missing dependencies for using plugins (diff) | |
download | gentoo-77b7ea74fe6e2f742bed3028f74619419ff2b2dc.tar.gz gentoo-77b7ea74fe6e2f742bed3028f74619419ff2b2dc.tar.bz2 gentoo-77b7ea74fe6e2f742bed3028f74619419ff2b2dc.zip |
kde-plasma/kde-gtk-config: kded: don't update text scale on kdeglobals
...change events.
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=468203
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/kde-gtk-config')
-rw-r--r-- | kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.4-kded-dont-update-textscale.patch | 28 | ||||
-rw-r--r-- | kde-plasma/kde-gtk-config/kde-gtk-config-5.27.4-r1.ebuild | 56 |
2 files changed, 84 insertions, 0 deletions
diff --git a/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.4-kded-dont-update-textscale.patch b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.4-kded-dont-update-textscale.patch new file mode 100644 index 000000000000..de16acc0cc97 --- /dev/null +++ b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.4-kded-dont-update-textscale.patch @@ -0,0 +1,28 @@ +From 52eb9d01b94eeece64044c5159d965eec7f39079 Mon Sep 17 00:00:00 2001 +From: Fushan Wen <qydwhotmail@gmail.com> +Date: Sat, 8 Apr 2023 00:25:52 +0800 +Subject: [PATCH] kded: don't update text scale on kdeglobals change events + +setTextScale() will be called in onKCMFontsSettingsChange + +CCBUG: 468203 +--- + kded/gtkconfig.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kded/gtkconfig.cpp b/kded/gtkconfig.cpp +index ec8f813..00222e1 100644 +--- a/kded/gtkconfig.cpp ++++ b/kded/gtkconfig.cpp +@@ -290,7 +290,7 @@ void GtkConfig::onKdeglobalsSettingsChange(const KConfigGroup &group, const QByt + } else if (group.name() == QStringLiteral("KScreen")) { + if (names.contains(QByteArrayLiteral("ScaleFactor"))) { + setGlobalScale(); +- setTextScale(); ++ // setTextScale() will be called in onKCMFontsSettingsChange + } + } else if (group.name() == QStringLiteral("Toolbar style")) { + if (names.contains(QByteArrayLiteral("ToolButtonStyle"))) { +-- +2.40.0 + diff --git a/kde-plasma/kde-gtk-config/kde-gtk-config-5.27.4-r1.ebuild b/kde-plasma/kde-gtk-config/kde-gtk-config-5.27.4-r1.ebuild new file mode 100644 index 000000000000..a9a985d7d35e --- /dev/null +++ b/kde-plasma/kde-gtk-config/kde-gtk-config-5.27.4-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KFMIN=5.102.0 +PVCUT=$(ver_cut 1-3) +QTMIN=5.15.7 +VIRTUALX_REQUIRED="test" +inherit ecm plasma.kde.org + +DESCRIPTION="Syncs KDE Plasma theme settings to GTK applications" +HOMEPAGE="https://invent.kde.org/plasma/kde-gtk-config" + +LICENSE="GPL-3" +SLOT="5" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="" + +DEPEND=" + dev-cpp/glibmm:2 + dev-libs/glib:2 + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtsvg-${QTMIN}:5 + gnome-base/gsettings-desktop-schemas + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kdbusaddons-${KFMIN}:5 + >=kde-frameworks/kguiaddons-${KFMIN}:5 + >=kde-plasma/kdecoration-${PVCUT}:5 + x11-libs/gtk+:3 +" +RDEPEND="${DEPEND} + >=kde-plasma/kde-cli-tools-${PVCUT}:5 + x11-misc/xsettingsd +" +BDEPEND="dev-lang/sassc" + +PATCHES=( "${FILESDIR}/${P}-kded-dont-update-textscale.patch" ) # KDE-bug 468203 + +src_configure() { + local mycmakeargs=( + -DDATA_INSTALL_DIR="${EPREFIX}/usr/share" + ) + + ecm_src_configure +} + +pkg_postinst() { + ecm_pkg_postinst + elog "If you notice missing icons in your GTK applications, you may have to install" + elog "the corresponding themes for GTK. A good guess would be x11-themes/oxygen-gtk" + elog "for example." +} |