17
0
Files
hamster-time-tracker/0136-ongoingFactEntry-stop-using-deprecated-Clutter-key-s.patch
Martin Wilck d6015f39c7 - GNOME 40 support for hamster shell extension
Upstream: d6e45d7 ("Fix GNOME shell error message about factsBox.FactsBox")
  * added 0131-metadata.json.in-fix-json-syntax-error.patch
  * added 0132-Update-README.st.patch
  * added 0133-Bump-latest-validated-gnome-shell-version-1.patch
  * added 0134-README-mention-GNOME-shell-compatibility-of-this-ver.patch
  * added 0135-README.rst-document-GNOME-shell-compatibility.patch
  * added 0136-ongoingFactEntry-stop-using-deprecated-Clutter-key-s.patch
  * added 0137-README.rst-update-GNOME-shell-compatibility-informat.patch
  * added 0138-Makefile-Add-install-user-target.patch
  * added 0139-Makefile-Add-install-target.patch
  * added 0140-README-Add-description-of-install-targets.patch
  * added 0141-Update-reST-syntax.patch
  * added 0142-Update-reST-syntax-take-2.patch
  * added 0143-Document-GNOME-3.38-compatibility.patch
  * added 0144-panelWidget-Remove-show-method.patch
  * added 0145-panelWidget-Rename-toggle-to-toggle_menu.patch
  * added 0146-Makeing-it-work-with-Gnome-40.-340.patch
  * added 0147-fixup-Makeing-it-work-with-Gnome-40.-340.patch

OBS-URL: https://build.opensuse.org/package/show/Office/hamster-time-tracker?expand=0&rev=23
2021-05-20 21:42:39 +00:00

29 lines
1.2 KiB
Diff

From ae52cc8c30cb36bdf28b3a5ead54914483156f1a Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwilck@suse.com>
Date: Tue, 28 Apr 2020 16:56:00 +0200
Subject: [PATCH 136/147] ongoingFactEntry: stop using deprecated Clutter key
symbols
"Clutter.Backspace" must be replaced by "Clutter.KEY_BackSpace", etc.
See https://github.com/GNOME/gnome-shell/commit/d3d165243c8457cc65e8864cee493f27fca15d59/
---
extension/widgets/ongoingFactEntry.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension/widgets/ongoingFactEntry.js b/extension/widgets/ongoingFactEntry.js
index 688aa6b..00d24ac 100644
--- a/extension/widgets/ongoingFactEntry.js
+++ b/extension/widgets/ongoingFactEntry.js
@@ -88,7 +88,7 @@ class OngoingFactEntry extends St.Entry {
* Check if the passed key is on our list of keys to be ignored.
*/
function checkIfIgnoredKey(key) {
- let ignoreKeys = [Clutter.BackSpace, Clutter.Delete, Clutter.Escape];
+ let ignoreKeys = [Clutter.KEY_BackSpace, Clutter.KEY_Delete, Clutter.KEY_Escape];
// Looks like there is realy no ``Array.includes()`` available as
// of now.
let result = ignoreKeys.indexOf(key);
--
2.31.1