[gnome-shell/gnome-40] popupMenu: Remove can_focus=True from Switch
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-40] popupMenu: Remove can_focus=True from Switch
- Date: Mon, 16 Aug 2021 00:44:55 +0000 (UTC)
commit 500f380314e01afff02fec2e2c627f30a300524c
Author: vanadiae <vanadiae35 gmail com>
Date: Tue Jul 20 14:11:28 2021 +0200
popupMenu: Remove can_focus=True from Switch
Since this is a bin and not a button, and it doesn't have any click/keyboard
handling on its own (as in that case it needs a parent button wired like in
the messages list controls), it is confusing that it has can_focus set to
True. To avoid any confusion, this commit removes it without breaking anything
since it had no real use.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1920>
(cherry picked from commit 7dd7714fd24baab3fb51ecbebcfaba31c325dc5e)
js/ui/popupMenu.js | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 11528560d4..ff83d2ceb2 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -324,7 +324,6 @@ var Switch = GObject.registerClass({
super._init({
style_class: 'toggle-switch',
accessible_role: Atk.Role.CHECK_BOX,
- can_focus: true,
state,
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]