From 10f7344336c0392dcb96987fefc880ad4a80638f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 19 Jan 2024 13:35:53 +0100 Subject: [PATCH] panel: Remove unnecessary code Since commit a4660293748, the activities button uses the standard `:checked` pseudo class in the overview instead of the custom `:overview`. As a side effect, the generic handling of the `CHECKED` Atk state in StWidget now covers the case, and we no longer need to manage the state explicitly. Part-of: --- js/ui/panel.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index 1041bac8d..7318e95f0 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -429,11 +429,9 @@ class ActivitiesButton extends PanelMenu.Button { Main.overview.connect('showing', () => { this.add_style_pseudo_class('checked'); - this.add_accessible_state(Atk.StateType.CHECKED); }); Main.overview.connect('hiding', () => { this.remove_style_pseudo_class('checked'); - this.remove_accessible_state(Atk.StateType.CHECKED); }); this._xdndTimeOut = 0;