status/network: Fix a11y names for VPN connection menu items
Because of an omission, the VPN menu items never got its a11y name, so a screen reader was reporting that item only as a plain item without any label. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2720>
This commit is contained in:
parent
4f913b4ebd
commit
95c0a88fe7
@ -1274,6 +1274,7 @@ const NMVpnConnectionItem = GObject.registerClass({
|
|||||||
this._label.x_expand = true;
|
this._label.x_expand = true;
|
||||||
this.accessible_role = Atk.Role.CHECK_MENU_ITEM;
|
this.accessible_role = Atk.Role.CHECK_MENU_ITEM;
|
||||||
this._icon.hide();
|
this._icon.hide();
|
||||||
|
this.label_actor = this._label;
|
||||||
|
|
||||||
this._switch = new PopupMenu.Switch(this.is_active);
|
this._switch = new PopupMenu.Switch(this.is_active);
|
||||||
this.add_child(this._switch);
|
this.add_child(this._switch);
|
||||||
|
Loading…
Reference in New Issue
Block a user