diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
commit | 2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch) | |
tree | 8c816148bcbd22757d892089c989ae614eae4f5a /kde-frameworks/kglobalaccel | |
parent | 0f558761aa2dee1017b4751e4017205e015a9560 (diff) |
gentoo resync : 09.07.2022
Diffstat (limited to 'kde-frameworks/kglobalaccel')
-rw-r--r-- | kde-frameworks/kglobalaccel/Manifest | 3 | ||||
-rw-r--r-- | kde-frameworks/kglobalaccel/files/kglobalaccel-5.95.0-fix-shortcut-conflict-dialog.patch | 151 | ||||
-rw-r--r-- | kde-frameworks/kglobalaccel/kglobalaccel-5.95.0-r1.ebuild (renamed from kde-frameworks/kglobalaccel/kglobalaccel-5.95.0.ebuild) | 2 |
3 files changed, 155 insertions, 1 deletions
diff --git a/kde-frameworks/kglobalaccel/Manifest b/kde-frameworks/kglobalaccel/Manifest index 37921cdd5e21..d20c5d94265d 100644 --- a/kde-frameworks/kglobalaccel/Manifest +++ b/kde-frameworks/kglobalaccel/Manifest @@ -1,5 +1,6 @@ +AUX kglobalaccel-5.95.0-fix-shortcut-conflict-dialog.patch 5674 BLAKE2B 9a6f1bf039b1431fd87ec318c3d8fbd1fa618ff9f71f3fb20994ca27619568368391179e93c4604b0d27d06dfbbdd4e5668df9d33a6a45ca2d4e3f8563322a2f SHA512 bce81f0336c8f7f1a0ee7ab550eb0c48486bc8bcdd24af754790ad737be734df130c46f1dbebe642d5c4a60b51ca1f5c793309437507f892a9fb4b73e69ba702 DIST kglobalaccel-5.92.0.tar.xz 93704 BLAKE2B a7b38b1c7b6bd0a7d20de7dd1893ae42d70888262fff6e196b8c64b5dd16d0c1ec5f8aaa44e1a0cbd39cc675df957e3e86c509ea7418105ef4df1071502d3c41 SHA512 b839dff3fcf191b2bdd99d6ba2e66169e86e73bef06bfaf990a30ad2d4a89d9150c798297f9cd98407a4ff390252b5d15fed8e51fc76a01199498099aa45f9cc DIST kglobalaccel-5.95.0.tar.xz 96196 BLAKE2B 7cf871861f243908f58bf0692305cc4a29e18e40a70547175d8a6c725f5c5843fe7bfbea05d308ae75e4e8e0ea2791f8cf77e23ddd72e3eb2e4bbd1bf9c4666a SHA512 defb559a87eb32afdec48f22ad0b28a5b8bfcc8cbdffb9babe9e00e5ebf4a530841261632b37d0e6df04c46c102a1a16e4301d5ef6b2c59d0978e2f6b5857b10 EBUILD kglobalaccel-5.92.0.ebuild 886 BLAKE2B eab826dd3ab025d67739d127a98a77b2a5e0808ab15c1d6a80bf42505fbb567ac9f4b71d20c8fdf5b9bfa6a4c9980a4ed629752245f5a1f21017b9662c46a61c SHA512 e2a107a207a8223845884cc9166cd65da0b6a667ec8fc6054cc32173d2bedae3651bb90e8a3ad156d3c86c995dcacae3031725d16ae7b6ee78e3340aeddead53 -EBUILD kglobalaccel-5.95.0.ebuild 1028 BLAKE2B 22d6e18aad78ef4b4cbd6d70cab637656b8c900bc8eb1f65def8cb6251a103acd93f70cb9740b6077aee28e7335d165f39046f3c1bfeca90cddd415d034a1015 SHA512 eb8a1df85918f4777151d73af87cf33a41cda31d8ce6e9793f2a5628a3d94946ba33517f5f5e85282db7fe98ff28a05e8a76730ab59de8efa4a84bcdaaa94359 +EBUILD kglobalaccel-5.95.0-r1.ebuild 1095 BLAKE2B 7980b96b98bc3945c3f301b49a5bbfdc97517aefd4f725eca4e86a65acd5a11730af5a2a355e7a426daa3d8888f7725aebe7240883ba365797223fd60f11067c SHA512 1c894300073c44f3da0a724186bd09d867381905c15fbb7e9552d8813764bb21be93a873c5b44255e0e41ca27a6e0b69380584ee38ce7f838e55be9cec23291f MISC metadata.xml 456 BLAKE2B 4392b1cc6f304778d71236d5eb557dfbbd530143eea5cad9a3c3034e3e8b22c835f6c7f980124a21cefd35a2dd1efd5110adc0a5342170f88dfd7418b12bee99 SHA512 7ba65331cad434e2dceee012a5458d268eb2a04e0f7276b265c15644e6db5209bc7eee7d9695aa0038c435711e0f6f0dc53c7bae9d773b48f01e22a22e4dbb80 diff --git a/kde-frameworks/kglobalaccel/files/kglobalaccel-5.95.0-fix-shortcut-conflict-dialog.patch b/kde-frameworks/kglobalaccel/files/kglobalaccel-5.95.0-fix-shortcut-conflict-dialog.patch new file mode 100644 index 000000000000..c39f30d86d3c --- /dev/null +++ b/kde-frameworks/kglobalaccel/files/kglobalaccel-5.95.0-fix-shortcut-conflict-dialog.patch @@ -0,0 +1,151 @@ +From 1a8e8cb00cda5807926a90ae8e5d5597354f3541 Mon Sep 17 00:00:00 2001 +From: Ahmad Samir <a.samirh78@gmail.com> +Date: Sat, 4 Jun 2022 23:00:15 +0200 +Subject: [PATCH] Fix D-Bus de/marshalling KGlobalAccel::MatchType + +Otherwise the globalShortcutsByKey() method is silently skipped, and isn't +visible on the org.kde.KGlobalAccel D-Bus interface. + +It turns out that to test changes made in kglobalaccel d-bus interface, you +need to kill the system /usr/bin/kglobalaccel process (be careful as that +breaks the most basic shortcuts, e.g. Alt+Tab), and run the one from the +build-dir, otherwise the session d-bus won't pick up your changes. + +To test: +- List all methods on the interface: + `qdbus org.kde.kglobalaccel /kglobalaccel` +- The followin messages are printed in the system log/journal: +Skipped method "globalShortcutsByKey" : Unregistered input type in parameter list: KGlobalAccel::MatchType +Skipped method "globalShortcutsByKey" : Unregistered input type in parameter list: KGlobalAccel::MatchType + +To see the behaviour mentioned in the bug report: +- Create a global shortcut of some kind (e.g. F4 to start some app) +- open the shortcut editor in e.g. Dolphin, and try to assign that same + shortcut to some other action the conflict shortcut message dialog should + show a message similar to the one in the attached screenshot at: + https://bugs.kde.org/show_bug.cgi?id=454704#c0 +The list of GlobalShortcutInfo returned by globalShortcutsByKey() is empty +because the method couldn't be found on the d-bus interface. + +After applying patch: +- kill the system /usr/bin/kglobalaccel and start the one from the build + dir +- Start Dolphin with the libs from the build-dir e.g.: + LD_LIBRARY_PATH=build-dir/bin/ dolphin +- The info about the global shortcut should be shown in the message dialog + +BUG: 454704 +FIXED-IN: 5.95 +--- + src/kglobalaccel.cpp | 19 +++++++++++++++++++ + src/kglobalaccel.h | 3 +++ + src/kglobalshortcutinfo_p.h | 1 + + src/org.kde.KGlobalAccel.xml | 3 ++- + src/runtime/kglobalacceld.cpp | 4 ++-- + 5 files changed, 27 insertions(+), 3 deletions(-) + +diff --git a/src/kglobalaccel.cpp b/src/kglobalaccel.cpp +index d0d2932..ef51b56 100644 +--- a/src/kglobalaccel.cpp ++++ b/src/kglobalaccel.cpp +@@ -147,6 +147,7 @@ KGlobalAccel::KGlobalAccel() + qDBusRegisterMetaType<QList<QStringList>>(); + qDBusRegisterMetaType<KGlobalShortcutInfo>(); + qDBusRegisterMetaType<QList<KGlobalShortcutInfo>>(); ++ qDBusRegisterMetaType<KGlobalAccel::MatchType>(); + } + + KGlobalAccel::~KGlobalAccel() +@@ -785,4 +786,22 @@ bool KGlobalAccelPrivate::setShortcutWithDefault(QAction *action, const QList<QK + return true; + } + ++QDBusArgument &operator<<(QDBusArgument &argument, const KGlobalAccel::MatchType &type) ++{ ++ argument.beginStructure(); ++ argument << static_cast<int>(type); ++ argument.endStructure(); ++ return argument; ++} ++ ++const QDBusArgument &operator>>(const QDBusArgument &argument, KGlobalAccel::MatchType &type) ++{ ++ argument.beginStructure(); ++ int arg; ++ argument >> arg; ++ type = static_cast<KGlobalAccel::MatchType>(arg); ++ argument.endStructure(); ++ return argument; ++} ++ + #include "moc_kglobalaccel.cpp" +diff --git a/src/kglobalaccel.h b/src/kglobalaccel.h +index 563278b..a74a311 100644 +--- a/src/kglobalaccel.h ++++ b/src/kglobalaccel.h +@@ -400,4 +400,7 @@ private: + friend class KGlobalAccelSingleton; + }; + ++KGLOBALACCEL_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const KGlobalAccel::MatchType &type); ++KGLOBALACCEL_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, KGlobalAccel::MatchType &type); ++ + #endif // _KGLOBALACCEL_H_ +diff --git a/src/kglobalshortcutinfo_p.h b/src/kglobalshortcutinfo_p.h +index 4b9146f..b3fa620 100644 +--- a/src/kglobalshortcutinfo_p.h ++++ b/src/kglobalshortcutinfo_p.h +@@ -13,6 +13,7 @@ + + static const int maxSequenceLength = 4; + ++#include "kglobalaccel.h" + #include "kglobalshortcutinfo.h" + + class KGlobalShortcutInfoPrivate +diff --git a/src/org.kde.KGlobalAccel.xml b/src/org.kde.KGlobalAccel.xml +index 65f93b8..d48ce87 100644 +--- a/src/org.kde.KGlobalAccel.xml ++++ b/src/org.kde.KGlobalAccel.xml +@@ -121,7 +121,8 @@ + <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList<KGlobalShortcutInfo>"/> + <arg name="key" type="ai" direction="in"/> + <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QKeySequence"/> +- <arg name="type" type="i" direction="in"/> ++ <arg name="matchType" type="KGlobalAccel::MatchType" direction="in"/> ++ <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="KGlobalAccel::MatchType"/> + </method> + <method name="globalShortcutAvailable"> + <arg type="b" direction="out"/> +diff --git a/src/runtime/kglobalacceld.cpp b/src/runtime/kglobalacceld.cpp +index cf22d26..e14d419 100644 +--- a/src/runtime/kglobalacceld.cpp ++++ b/src/runtime/kglobalacceld.cpp +@@ -13,6 +13,7 @@ + #include "globalshortcut.h" + #include "globalshortcutcontext.h" + #include "globalshortcutsregistry.h" ++#include "kglobalaccel.h" + #include "kserviceactioncomponent.h" + #include "logging_p.h" + +@@ -21,8 +22,6 @@ + #include <QMetaMethod> + #include <QTimer> + +-#include "kglobalaccel.h" +- + struct KGlobalAccelDPrivate { + KGlobalAccelDPrivate(KGlobalAccelD *qq) + : q(qq) +@@ -175,6 +174,7 @@ bool KGlobalAccelD::init() + qDBusRegisterMetaType<QStringList>(); + qDBusRegisterMetaType<KGlobalShortcutInfo>(); + qDBusRegisterMetaType<QList<KGlobalShortcutInfo>>(); ++ qDBusRegisterMetaType<KGlobalAccel::MatchType>(); + + GlobalShortcutsRegistry *reg = GlobalShortcutsRegistry::self(); + Q_ASSERT(reg); +-- +GitLab + diff --git a/kde-frameworks/kglobalaccel/kglobalaccel-5.95.0.ebuild b/kde-frameworks/kglobalaccel/kglobalaccel-5.95.0-r1.ebuild index bdc12b12fc32..28733db44c48 100644 --- a/kde-frameworks/kglobalaccel/kglobalaccel-5.95.0.ebuild +++ b/kde-frameworks/kglobalaccel/kglobalaccel-5.95.0-r1.ebuild @@ -39,6 +39,8 @@ DEPEND="${RDEPEND} " BDEPEND="nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )" +PATCHES=( "${FILESDIR}/${P}-fix-shortcut-conflict-dialog.patch" ) + src_test() { XDG_CURRENT_DESKTOP="KDE" ecm_src_test # bug 789342 } |