17
0
Files
hamster-time-tracker/0145-panelWidget-Rename-toggle-to-toggle_menu.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

42 lines
1.4 KiB
Diff

From 97f754ab54fb07d5dce4e55eb9e996f6e238107f Mon Sep 17 00:00:00 2001
From: Matthijs Kooijman <matthijs@stdin.nl>
Date: Sat, 8 May 2021 10:56:28 +0200
Subject: [PATCH 145/147] panelWidget: Rename toggle() to toggle_menu()
This makes it a bit more clear that it does not toggle the widget
itself, but the popup menu.
---
extension/extension.js | 2 +-
extension/widgets/panelWidget.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension/extension.js b/extension/extension.js
index 4956c47..3414ecf 100644
--- a/extension/extension.js
+++ b/extension/extension.js
@@ -183,7 +183,7 @@ class Controller {
Meta.KeyBindingFlags.NONE,
// Since Gnome 3.16, Shell.KeyBindingMode is replaced by Shell.ActionMode
Shell.KeyBindingMode ? Shell.KeyBindingMode.ALL : Shell.ActionMode.ALL,
- this.panelWidget.toggle.bind(this.panelWidget)
+ this.panelWidget.toggle_menu.bind(this.panelWidget)
);
}
diff --git a/extension/widgets/panelWidget.js b/extension/widgets/panelWidget.js
index 549a241..41d9bf1 100644
--- a/extension/widgets/panelWidget.js
+++ b/extension/widgets/panelWidget.js
@@ -203,7 +203,7 @@ class PanelWidget extends PanelMenu.Button {
/**
* Close/Open the 'popup menu' depending on previous state.
*/
- toggle() {
+ toggle_menu() {
this.menu.toggle();
}
--
2.31.1