From 8ebd2ff9eb3eed76a14f569baeb56561dd00c26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Tue, 31 Jul 2012 17:53:37 +0200 Subject: [PATCH] a11y: adding a proper state for menu items with a dot https://bugzilla.gnome.org/show_bug.cgi?id=682366 --- js/ui/popupMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 3c49c5dc3..dcc23d7f2 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -179,12 +179,14 @@ const PopupBaseMenuItem = new Lang.Class({ this._dot = new St.DrawingArea({ style_class: 'popup-menu-item-dot' }); this._dot.connect('repaint', Lang.bind(this, this._onRepaintDot)); this.actor.add_actor(this._dot); + this.actor.add_accessible_state (Atk.StateType.CHECKED); } else { if (!this._dot) return; this._dot.destroy(); this._dot = null; + this.actor.remove_accessible_state (Atk.StateType.CHECKED); } },