17
0
Files
hamster-time-tracker/0144-panelWidget-Remove-show-method.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

46 lines
1.6 KiB
Diff

From 377b115ddefb6ae431fa62ed4e74c53e4ef96e5b Mon Sep 17 00:00:00 2001
From: Matthijs Kooijman <matthijs@stdin.nl>
Date: Mon, 19 Oct 2020 11:28:35 +0200
Subject: [PATCH 144/147] panelWidget: Remove show() method
This widget defined a `show()` method, which would show the menu.
However, `show()` is already a method defined by some class higher up in
the hierarchy, which makes the *widget* in the status area visible. By
defining a `show()` method here, the behavior of the `show()` method
changes, causing issues.
One such issue showed when combining this extension with the
status-area-horizontal-spacing extension (prior to v2.6), which calls
`hide()` and `show()` on each widget in the status area. With the
overridden `show()` method in the hamster extension, this would hide the
widget and then show the menu, breaking the extension because the widget
would stay hidden.
Since the `show()` method was not actuall used anywhere, this commit
removes it to prevent the conflict.
---
extension/widgets/panelWidget.js | 7 -------
1 file changed, 7 deletions(-)
diff --git a/extension/widgets/panelWidget.js b/extension/widgets/panelWidget.js
index 9288f06..549a241 100644
--- a/extension/widgets/panelWidget.js
+++ b/extension/widgets/panelWidget.js
@@ -200,13 +200,6 @@ class PanelWidget extends PanelMenu.Button {
return GLib.SOURCE_CONTINUE;
}
- /**
- * Open 'popup menu' containing the bulk of the extension widgets.
- */
- show() {
- this.menu.open();
- }
-
/**
* Close/Open the 'popup menu' depending on previous state.
*/
--
2.31.1