a11y: Setting label_actor and role for Contacts on the overview
https://bugzilla.gnome.org/show_bug.cgi?id=672047
This commit is contained in:
parent
8db193a172
commit
d05d748fe2
@ -5,6 +5,7 @@ const Lang = imports.lang;
|
|||||||
const Meta = imports.gi.Meta;
|
const Meta = imports.gi.Meta;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
const St = imports.gi.St;
|
const St = imports.gi.St;
|
||||||
|
const Atk = imports.gi.Atk;
|
||||||
|
|
||||||
const Util = imports.misc.util;
|
const Util = imports.misc.util;
|
||||||
const IconGrid = imports.ui.iconGrid;
|
const IconGrid = imports.ui.iconGrid;
|
||||||
@ -30,7 +31,8 @@ const Contact = new Lang.Class({
|
|||||||
this.actor = new St.Bin({ style_class: 'contact',
|
this.actor = new St.Bin({ style_class: 'contact',
|
||||||
reactive: true,
|
reactive: true,
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
track_hover: true });
|
track_hover: true,
|
||||||
|
accessible_role: Atk.Role.PUSH_BUTTON });
|
||||||
|
|
||||||
let content = new St.BoxLayout( { style_class: 'contact-content',
|
let content = new St.BoxLayout( { style_class: 'contact-content',
|
||||||
vertical: false });
|
vertical: false });
|
||||||
@ -69,6 +71,8 @@ const Contact = new Lang.Class({
|
|||||||
x_align: St.Align.START,
|
x_align: St.Align.START,
|
||||||
y_align: St.Align.START });
|
y_align: St.Align.START });
|
||||||
|
|
||||||
|
this.actor.label_actor = aliasLabel;
|
||||||
|
|
||||||
let presence = this._createPresence(this.individual.presence_type);
|
let presence = this._createPresence(this.individual.presence_type);
|
||||||
details.add(presence, { x_fill: false,
|
details.add(presence, { x_fill: false,
|
||||||
y_fill: true,
|
y_fill: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user