GNOME Bugzilla – Bug 705733
Make new system status implementation respect the always-show-universal-access-status setting
Last modified: 2013-08-17 15:22:17 UTC
This setting was introduced in https://git.gnome.org/browse/gsettings-desktop-schemas/commit/?id=2f73f82a52b3e3aeb3bcbc52d14beb0403cd0b9b and the a11y panel has a switch for it.
Created attachment 251524 [details] [review] status: Respect always-show-universal-access-status setting
Review of attachment 251524 [details] [review]: ::: js/ui/status/accessibility.js @@ +52,3 @@ + let a11ySettings = new Gio.Settings({ schema: A11Y_SCHEMA }); + a11ySettings.connect('changed::' + KEY_ALWAYS_SHOW, Lang.bind(this, function() { + this._alwaysShow = !this._alwaysShow; Why do we need this._alwaysShow? Why not just this._a11ySettings.get_boolean(KEY_ALWAYS_SHOW); ?
Created attachment 251528 [details] [review] status: Respect always-show-universal-access-status setting Definitely not a need, just thought to avoid querying the settings excessively. It's removed.
Review of attachment 251528 [details] [review]: One minor nit, otherwise fine. ::: js/ui/status/accessibility.js @@ +51,3 @@ + this._a11ySettings = new Gio.Settings({ schema: A11Y_SCHEMA }); + this._a11ySettings.connect('changed::' + KEY_ALWAYS_SHOW, Lang.bind(this, function() { Lang.bind(this, this._queueSyncMenuVisibility)
Created attachment 251529 [details] [review] status: Respect always-show-universal-access-status setting Fixed.
Review of attachment 251529 [details] [review]: OK.
Attachment 251529 [details] pushed as c95ec8e - status: Respect always-show-universal-access-status setting
Good work