From b2495a0e25953330087a393c21ebaa8ce4ef191c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 12 Nov 2010 19:37:51 +0100 Subject: [PATCH] a11y-status: Fix left over GConf usage Commit f0c6e96e828 updated the "Large Text" action to use a GSettings key, but left some code accessing the setting via GConf. https://bugzilla.gnome.org/show_bug.cgi?id=634693 --- js/ui/status/accessibility.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js index ce930d603..a1e9ee431 100644 --- a/js/ui/status/accessibility.js +++ b/js/ui/status/accessibility.js @@ -82,7 +82,7 @@ ATIndicator.prototype = { let magnifier = this._buildMagItem(); this.menu.addMenuItem(magnifier); - let textZoom = this._buildFontItem(client); + let textZoom = this._buildFontItem(); this.menu.addMenuItem(textZoom); let screenReader = this._buildItem(_("Screen Reader"), AT_SCREEN_READER_SCHEMA, 'startup'); @@ -189,7 +189,7 @@ ATIndicator.prototype = { return highContrast; }, - _buildFontItem: function(client) { + _buildFontItem: function() { let settings = new Gio.Settings({ schema: XSETTINGS_SCHEMA }); // we assume this never changes (which is not true if resolution @@ -207,9 +207,9 @@ ATIndicator.prototype = { settings.is_writable(KEY_DPI), function (enabled) { if (enabled) - client.set_float(KEY_DPI, DPI_FACTOR_LARGE * default_value); + settings.set_double(KEY_DPI, DPI_FACTOR_LARGE * default_value); else - client.set_float(KEY_DPI, default_value); + settings.set_double(KEY_DPI, default_value); }); settings.connect('changed::' + KEY_DPI, function() { let active = on_get();