[gnome-shell] a11y: adding a proper state for menu items with a dot



commit 8ebd2ff9eb3eed76a14f569baeb56561dd00c26c
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Tue Jul 31 17:53:37 2012 +0200

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 3c49c5d..dcc23d7 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);
         }
     },
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]