[gnome-shell] a11y: added EXPANDABLE and EXPANDED state on Alt+Tab popup menu
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] a11y: added EXPANDABLE and EXPANDED state on Alt+Tab popup menu
- Date: Thu, 15 Mar 2012 19:01:12 +0000 (UTC)
commit d7e2b0a771b8da77fcbe0b69238031b125d20223
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Wed Mar 7 19:29:13 2012 +0100
a11y: added EXPANDABLE and EXPANDED state on Alt+Tab popup menu
https://bugzilla.gnome.org/show_bug.cgi?id=670719
js/ui/altTab.js | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index fd5b941..61eceec 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -9,6 +9,7 @@ const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
const Signals = imports.signals;
const St = imports.gi.St;
+const Atk = imports.gi.Atk;
const Main = imports.ui.main;
const Tweener = imports.ui.tweener;
@@ -518,6 +519,7 @@ const AltTabPopup = new Lang.Class({
})
});
this._thumbnails = null;
+ this._appSwitcher._items[this._currentApp].remove_accessible_state (Atk.StateType.EXPANDED);
},
_createThumbnails : function() {
@@ -538,6 +540,8 @@ const AltTabPopup = new Lang.Class({
transition: 'easeOutQuad',
onComplete: Lang.bind(this, function () { this.thumbnailsVisible = true; })
});
+
+ this._appSwitcher._items[this._currentApp].add_accessible_state (Atk.StateType.EXPANDED);
}
});
@@ -637,6 +641,8 @@ const SwitcherList = new Lang.Class({
bbox.label_actor = label;
this._items.push(bbox);
+
+ return bbox;
},
_onItemClicked: function (index) {
@@ -1017,7 +1023,7 @@ const AppSwitcher = new Lang.Class({
_addIcon : function(appIcon) {
this.icons.push(appIcon);
- this.addItem(appIcon.actor, appIcon.label);
+ let item = this.addItem(appIcon.actor, appIcon.label);
let n = this._arrows.length;
let arrow = new St.DrawingArea({ style_class: 'switcher-arrow' });
@@ -1027,6 +1033,8 @@ const AppSwitcher = new Lang.Class({
if (appIcon.cachedWindows.length == 1)
arrow.hide();
+ else
+ item.add_accessible_state (Atk.StateType.EXPANDABLE);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]