1 |
commit: 2969b4b614413e9a5078dcf5e7884005a279aede |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 14 08:06:57 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 14 09:03:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2969b4b6 |
7 |
|
8 |
kde-frameworks/kglobalaccel: drop 5.82.0* |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
kde-frameworks/kglobalaccel/Manifest | 1 - |
13 |
...5.82.0-revert-prevent-activate-w-o-plasma.patch | 242 --------------------- |
14 |
.../kglobalaccel/kglobalaccel-5.82.0-r1.ebuild | 39 ---- |
15 |
3 files changed, 282 deletions(-) |
16 |
|
17 |
diff --git a/kde-frameworks/kglobalaccel/Manifest b/kde-frameworks/kglobalaccel/Manifest |
18 |
index f20f5ed1514..50f9ad1707b 100644 |
19 |
--- a/kde-frameworks/kglobalaccel/Manifest |
20 |
+++ b/kde-frameworks/kglobalaccel/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
-DIST kglobalaccel-5.82.0.tar.xz 87932 BLAKE2B feed60b09b01da373b3a6b989ca465b93a67d1ba84ce45c503805e6cb49af1b7ce99afa1921414e9a616d344f95366e0e4822b58f41ea73222dacfcc448a588c SHA512 c6f757628ca8123183b1ead08fbf326bf8b6d5b97e4dc65c33a2c158103aa7915617d423692ee417059bd08a299546b7cdd373b31dbfd80f2498193da7b5aaf7 |
23 |
DIST kglobalaccel-5.85.0.tar.xz 87868 BLAKE2B c76a60426406689434b8b7e90ff9f107173ffa8bb6e6f78603541c2f7fdba62719d141f01ac2a7e3ebeae06a2a891a5467e6ee87eb5d30a53ed4e3faa98a1b28 SHA512 091194d3171820c121c32356bf1dfd98416b91952b745afbf35fc75a7e944a5c80f17fb1f8418016513eaaf63ccb07c1aec822f5f3823f3f4aa604c3dd9963f2 |
24 |
DIST kglobalaccel-5.86.0.tar.xz 88000 BLAKE2B 3c9d361ddf8a85fef783dedafa508f98e90da22652e057298b68a6957d882ddd2c7a28cc13278520c9d5672b1d3954e634d1df0963c7b78c18bfc6183c4db9a7 SHA512 ee1b700cd0c7f9162f6b649e61164e5e0915be3acdc52c504c85f133b64ec8d2ea962503d60d772efb127b6537c3bbd7d61f2b018b9846a791e9cf8caa4c0eb6 |
25 |
|
26 |
diff --git a/kde-frameworks/kglobalaccel/files/kglobalaccel-5.82.0-revert-prevent-activate-w-o-plasma.patch b/kde-frameworks/kglobalaccel/files/kglobalaccel-5.82.0-revert-prevent-activate-w-o-plasma.patch |
27 |
deleted file mode 100644 |
28 |
index 1cea821ebe9..00000000000 |
29 |
--- a/kde-frameworks/kglobalaccel/files/kglobalaccel-5.82.0-revert-prevent-activate-w-o-plasma.patch |
30 |
+++ /dev/null |
31 |
@@ -1,242 +0,0 @@ |
32 |
-From 9a48818abf50340e31d718cc675501dec6c51429 Mon Sep 17 00:00:00 2001 |
33 |
-From: Nate Graham <nate@×××.org> |
34 |
-Date: Wed, 26 May 2021 13:14:13 -0600 |
35 |
-Subject: [PATCH] Revert "Prevent kglobalaccel5 getting activated on non-Plasma |
36 |
- systems" |
37 |
- |
38 |
-This reverts commit 48c3376927e5e9c13377bf3cfc8b0c411783e7f3. |
39 |
- |
40 |
-This change broke users of KGlobalAccel run outside of the Plasma |
41 |
-Desktop. This sort of behavior change probably needs to be made during |
42 |
-a major transition like KF6 so that developers have some notice and it |
43 |
-doesn't randomly change and break stuff unexpectedly. |
44 |
- |
45 |
-CCBUG: 435420 |
46 |
-BUG: 437034 |
47 |
-FIXED-IN: 5.83 |
48 |
---- |
49 |
- src/kglobalaccel.cpp | 80 -------------------------------------------- |
50 |
- 1 file changed, 80 deletions(-) |
51 |
- |
52 |
-diff --git a/src/kglobalaccel.cpp b/src/kglobalaccel.cpp |
53 |
-index 8bb43e5..154caed 100644 |
54 |
---- a/src/kglobalaccel.cpp |
55 |
-+++ b/src/kglobalaccel.cpp |
56 |
-@@ -25,11 +25,6 @@ |
57 |
- #include <QX11Info> |
58 |
- #endif |
59 |
- |
60 |
--bool active() |
61 |
--{ |
62 |
-- return qgetenv("XDG_CURRENT_DESKTOP") == QByteArrayLiteral("KDE"); |
63 |
--} |
64 |
-- |
65 |
- org::kde::kglobalaccel::Component *KGlobalAccelPrivate::getComponent(const QString &componentUnique, bool remember = false) |
66 |
- { |
67 |
- // Check if we already have this component |
68 |
-@@ -148,11 +143,6 @@ KGlobalAccel::~KGlobalAccel() |
69 |
- void KGlobalAccel::activateGlobalShortcutContext(const QString &contextUnique, const QString &contextFriendly, const QString &programName) |
70 |
- { |
71 |
- Q_UNUSED(contextFriendly); |
72 |
-- |
73 |
-- if (!active()) { |
74 |
-- return; |
75 |
-- } |
76 |
-- |
77 |
- // TODO: provide contextFriendly |
78 |
- self()->d->iface()->activateGlobalShortcutContext(programName, contextUnique); |
79 |
- } |
80 |
-@@ -160,10 +150,6 @@ void KGlobalAccel::activateGlobalShortcutContext(const QString &contextUnique, c |
81 |
- // static |
82 |
- bool KGlobalAccel::cleanComponent(const QString &componentUnique) |
83 |
- { |
84 |
-- if (!active()) { |
85 |
-- return false; |
86 |
-- } |
87 |
-- |
88 |
- org::kde::kglobalaccel::Component *component = self()->getComponent(componentUnique); |
89 |
- if (!component) { |
90 |
- return false; |
91 |
-@@ -175,10 +161,6 @@ bool KGlobalAccel::cleanComponent(const QString &componentUnique) |
92 |
- // static |
93 |
- bool KGlobalAccel::isComponentActive(const QString &componentUnique) |
94 |
- { |
95 |
-- if (!active()) { |
96 |
-- return false; |
97 |
-- } |
98 |
-- |
99 |
- org::kde::kglobalaccel::Component *component = self()->getComponent(componentUnique); |
100 |
- if (!component) { |
101 |
- return false; |
102 |
-@@ -196,10 +178,6 @@ bool KGlobalAccel::isEnabled() const |
103 |
- |
104 |
- org::kde::kglobalaccel::Component *KGlobalAccel::getComponent(const QString &componentUnique) |
105 |
- { |
106 |
-- if (!active()) { |
107 |
-- return nullptr; |
108 |
-- } |
109 |
-- |
110 |
- return d->getComponent(componentUnique); |
111 |
- } |
112 |
- |
113 |
-@@ -526,10 +504,6 @@ void KGlobalAccelPrivate::reRegisterAll() |
114 |
- #if KGLOBALACCEL_BUILD_DEPRECATED_SINCE(4, 2) |
115 |
- QList<QStringList> KGlobalAccel::allMainComponents() |
116 |
- { |
117 |
-- if (!active()) { |
118 |
-- return {}; |
119 |
-- } |
120 |
-- |
121 |
- return d->iface()->allMainComponents(); |
122 |
- } |
123 |
- #endif |
124 |
-@@ -537,9 +511,6 @@ QList<QStringList> KGlobalAccel::allMainComponents() |
125 |
- #if KGLOBALACCEL_BUILD_DEPRECATED_SINCE(4, 2) |
126 |
- QList<QStringList> KGlobalAccel::allActionsForComponent(const QStringList &actionId) |
127 |
- { |
128 |
-- if (!active()) { |
129 |
-- return {}; |
130 |
-- } |
131 |
- return d->iface()->allActionsForComponent(actionId); |
132 |
- } |
133 |
- #endif |
134 |
-@@ -548,29 +519,17 @@ QList<QStringList> KGlobalAccel::allActionsForComponent(const QStringList &actio |
135 |
- #if KGLOBALACCEL_BUILD_DEPRECATED_SINCE(4, 2) |
136 |
- QStringList KGlobalAccel::findActionNameSystemwide(const QKeySequence &seq) |
137 |
- { |
138 |
-- if (!active()) { |
139 |
-- return {}; |
140 |
-- } |
141 |
-- |
142 |
- return self()->d->iface()->action(seq[0]); |
143 |
- } |
144 |
- #endif |
145 |
- |
146 |
- QList<KGlobalShortcutInfo> KGlobalAccel::getGlobalShortcutsByKey(const QKeySequence &seq) |
147 |
- { |
148 |
-- if (!active()) { |
149 |
-- return {}; |
150 |
-- } |
151 |
-- |
152 |
- return self()->d->iface()->getGlobalShortcutsByKey(seq[0]); |
153 |
- } |
154 |
- |
155 |
- bool KGlobalAccel::isGlobalShortcutAvailable(const QKeySequence &seq, const QString &comp) |
156 |
- { |
157 |
-- if (!active()) { |
158 |
-- return false; |
159 |
-- } |
160 |
-- |
161 |
- return self()->d->iface()->isGlobalShortcutAvailable(seq[0], comp); |
162 |
- } |
163 |
- |
164 |
-@@ -578,10 +537,6 @@ bool KGlobalAccel::isGlobalShortcutAvailable(const QKeySequence &seq, const QStr |
165 |
- #if KGLOBALACCEL_BUILD_DEPRECATED_SINCE(4, 2) |
166 |
- bool KGlobalAccel::promptStealShortcutSystemwide(QWidget *parent, const QStringList &actionIdentifier, const QKeySequence &seq) |
167 |
- { |
168 |
-- if (!active()) { |
169 |
-- return false; |
170 |
-- } |
171 |
-- |
172 |
- if (actionIdentifier.size() < 4) { |
173 |
- return false; |
174 |
- } |
175 |
-@@ -604,10 +559,6 @@ bool KGlobalAccel::promptStealShortcutSystemwide(QWidget *parent, const QStringL |
176 |
- // static |
177 |
- bool KGlobalAccel::promptStealShortcutSystemwide(QWidget *parent, const QList<KGlobalShortcutInfo> &shortcuts, const QKeySequence &seq) |
178 |
- { |
179 |
-- if (!active()) { |
180 |
-- return false; |
181 |
-- } |
182 |
-- |
183 |
- if (shortcuts.isEmpty()) { |
184 |
- // Usage error. Just say no |
185 |
- return false; |
186 |
-@@ -640,10 +591,6 @@ bool KGlobalAccel::promptStealShortcutSystemwide(QWidget *parent, const QList<KG |
187 |
- // static |
188 |
- void KGlobalAccel::stealShortcutSystemwide(const QKeySequence &seq) |
189 |
- { |
190 |
-- if (!active()) { |
191 |
-- return; |
192 |
-- } |
193 |
-- |
194 |
- // get the shortcut, remove seq, and set the new shortcut |
195 |
- const QStringList actionId = self()->d->iface()->action(seq[0]); |
196 |
- if (actionId.size() < 4) { // not a global shortcut |
197 |
-@@ -676,10 +623,6 @@ bool checkGarbageKeycode(const QList<QKeySequence> &shortcut) |
198 |
- |
199 |
- bool KGlobalAccel::setDefaultShortcut(QAction *action, const QList<QKeySequence> &shortcut, GlobalShortcutLoading loadFlag) |
200 |
- { |
201 |
-- if (!active()) { |
202 |
-- return false; |
203 |
-- } |
204 |
-- |
205 |
- if (checkGarbageKeycode(shortcut)) { |
206 |
- return false; |
207 |
- } |
208 |
-@@ -695,10 +638,6 @@ bool KGlobalAccel::setDefaultShortcut(QAction *action, const QList<QKeySequence> |
209 |
- |
210 |
- bool KGlobalAccel::setShortcut(QAction *action, const QList<QKeySequence> &shortcut, GlobalShortcutLoading loadFlag) |
211 |
- { |
212 |
-- if (!active()) { |
213 |
-- return false; |
214 |
-- } |
215 |
-- |
216 |
- if (checkGarbageKeycode(shortcut)) { |
217 |
- return false; |
218 |
- } |
219 |
-@@ -724,9 +663,6 @@ QList<QKeySequence> KGlobalAccel::shortcut(const QAction *action) const |
220 |
- |
221 |
- QList<QKeySequence> KGlobalAccel::globalShortcut(const QString &componentName, const QString &actionId) const |
222 |
- { |
223 |
-- if (!active()) { |
224 |
-- return {}; |
225 |
-- } |
226 |
- // see also d->updateGlobalShortcut(action, KGlobalAccelPrivate::ActiveShortcut, KGlobalAccel::Autoloading); |
227 |
- |
228 |
- // how componentName and actionId map to QAction, e.g: |
229 |
-@@ -740,19 +676,11 @@ QList<QKeySequence> KGlobalAccel::globalShortcut(const QString &componentName, c |
230 |
- |
231 |
- void KGlobalAccel::removeAllShortcuts(QAction *action) |
232 |
- { |
233 |
-- if (!active()) { |
234 |
-- return; |
235 |
-- } |
236 |
-- |
237 |
- d->remove(action, KGlobalAccelPrivate::UnRegister); |
238 |
- } |
239 |
- |
240 |
- bool KGlobalAccel::hasShortcut(const QAction *action) const |
241 |
- { |
242 |
-- if (!active()) { |
243 |
-- return false; |
244 |
-- } |
245 |
-- |
246 |
- return d->actionShortcuts.contains(action) || d->actionDefaultShortcuts.contains(action); |
247 |
- } |
248 |
- |
249 |
-@@ -765,10 +693,6 @@ bool KGlobalAccel::eventFilter(QObject *watched, QEvent *event) |
250 |
- |
251 |
- bool KGlobalAccel::setGlobalShortcut(QAction *action, const QList<QKeySequence> &shortcut) |
252 |
- { |
253 |
-- if (!active()) { |
254 |
-- return false; |
255 |
-- } |
256 |
-- |
257 |
- KGlobalAccel *g = KGlobalAccel::self(); |
258 |
- return g->d->setShortcutWithDefault(action, shortcut, Autoloading); |
259 |
- } |
260 |
-@@ -780,10 +704,6 @@ bool KGlobalAccel::setGlobalShortcut(QAction *action, const QKeySequence &shortc |
261 |
- |
262 |
- bool KGlobalAccelPrivate::setShortcutWithDefault(QAction *action, const QList<QKeySequence> &shortcut, KGlobalAccel::GlobalShortcutLoading loadFlag) |
263 |
- { |
264 |
-- if (!active()) { |
265 |
-- return false; |
266 |
-- } |
267 |
-- |
268 |
- if (checkGarbageKeycode(shortcut)) { |
269 |
- return false; |
270 |
- } |
271 |
--- |
272 |
-GitLab |
273 |
- |
274 |
|
275 |
diff --git a/kde-frameworks/kglobalaccel/kglobalaccel-5.82.0-r1.ebuild b/kde-frameworks/kglobalaccel/kglobalaccel-5.82.0-r1.ebuild |
276 |
deleted file mode 100644 |
277 |
index 5cf9c27bbef..00000000000 |
278 |
--- a/kde-frameworks/kglobalaccel/kglobalaccel-5.82.0-r1.ebuild |
279 |
+++ /dev/null |
280 |
@@ -1,39 +0,0 @@ |
281 |
-# Copyright 1999-2021 Gentoo Authors |
282 |
-# Distributed under the terms of the GNU General Public License v2 |
283 |
- |
284 |
-EAPI=7 |
285 |
- |
286 |
-PVCUT=$(ver_cut 1-2) |
287 |
-QTMIN=5.15.2 |
288 |
-VIRTUALX_REQUIRED="test" |
289 |
-inherit ecm kde.org |
290 |
- |
291 |
-DESCRIPTION="Framework to handle global shortcuts" |
292 |
- |
293 |
-LICENSE="LGPL-2+" |
294 |
-KEYWORDS="amd64 ~arm arm64 ~ppc64 x86" |
295 |
-IUSE="nls" |
296 |
- |
297 |
-DEPEND=" |
298 |
- >=dev-qt/qtdbus-${QTMIN}:5 |
299 |
- >=dev-qt/qtgui-${QTMIN}:5 |
300 |
- >=dev-qt/qtwidgets-${QTMIN}:5 |
301 |
- >=dev-qt/qtx11extras-${QTMIN}:5 |
302 |
- =kde-frameworks/kconfig-${PVCUT}*:5 |
303 |
- =kde-frameworks/kcoreaddons-${PVCUT}*:5 |
304 |
- =kde-frameworks/kcrash-${PVCUT}*:5 |
305 |
- =kde-frameworks/kdbusaddons-${PVCUT}*:5 |
306 |
- =kde-frameworks/kwindowsystem-${PVCUT}*:5[X] |
307 |
- x11-libs/libxcb |
308 |
- x11-libs/xcb-util-keysyms |
309 |
-" |
310 |
-RDEPEND="${DEPEND}" |
311 |
-BDEPEND="nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )" |
312 |
- |
313 |
-PATCHES=( |
314 |
- "${FILESDIR}"/${P}-revert-prevent-activate-w-o-plasma.patch # KDE-bug 437034 |
315 |
-) |
316 |
- |
317 |
-src_test() { |
318 |
- XDG_CURRENT_DESKTOP="KDE" ecm_src_test # bug 789342 |
319 |
-} |