From e91f4e88b550d0a1c8e8b5c363f1155e4073eec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Sat, 18 Feb 2012 02:40:40 +0100 Subject: [PATCH] a11y: Setting LIST_ITEM role for Categories items on Applications view --- js/ui/appDisplay.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index f70c390e0..5b2c75f45 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -10,6 +10,7 @@ const Signals = imports.signals; const Meta = imports.gi.Meta; const St = imports.gi.St; const Mainloop = imports.mainloop; +const Atk = imports.gi.Atk; const AppFavorites = imports.ui.appFavorites; const DND = imports.ui.dnd; @@ -148,7 +149,9 @@ const ViewByCategories = new Lang.Class({ this._categories = []; this._apps = null; - this._categoryBox = new St.BoxLayout({ vertical: true, reactive: true }); + this._categoryBox = new St.BoxLayout({ vertical: true, + reactive: true, + accessible_role: Atk.Role.LIST }); this._categoryScroll = new St.ScrollView({ x_fill: false, y_fill: false, style_class: 'vfade' }); @@ -214,7 +217,8 @@ const ViewByCategories = new Lang.Class({ let button = new St.Button({ label: GLib.markup_escape_text (name, -1), style_class: 'app-filter', x_align: St.Align.START, - can_focus: true }); + can_focus: true , + accessible_role: Atk.Role.LIST_ITEM }); button.connect('clicked', Lang.bind(this, function() { this._selectCategory(index); }));