[gnome-shell] a11y-status: Fix left over GConf usage



commit b2495a0e25953330087a393c21ebaa8ce4ef191c
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Nov 12 19:37:51 2010 +0100

    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 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js
index ce930d6..a1e9ee4 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();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]