[gnome-documents] Use schema_id instead of deprecated schema



commit e28a9330b460e61da927c1c0e002e3c9979abff7
Author: David King <amigadave amigadave com>
Date:   Thu Sep 4 13:32:04 2014 +0100

    Use schema_id instead of deprecated schema
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736048

 src/application.js |    2 +-
 src/search.js      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 8f77ee8..a25fc1f 100644
--- a/src/application.js
+++ b/src/application.js
@@ -409,7 +409,7 @@ const Application = new Lang.Class({
         resource._register();
 
         application = this;
-        settings = new Gio.Settings({ schema: 'org.gnome.documents' });
+        settings = new Gio.Settings({ schema_id: 'org.gnome.documents' });
 
         let gtkSettings = Gtk.Settings.get_default();
         gtkSettings.connect('notify::gtk-theme-name', Lang.bind(this, this._themeChanged));
diff --git a/src/search.js b/src/search.js
index 2ba9f07..96fa2f4 100644
--- a/src/search.js
+++ b/src/search.js
@@ -326,7 +326,7 @@ const Source = new Lang.Class({
     },
 
     _getTrackerLocations: function() {
-        let settings = new Gio.Settings({ schema: TRACKER_SCHEMA });
+        let settings = new Gio.Settings({ schema_id: TRACKER_SCHEMA });
         let locations = settings.get_strv(TRACKER_KEY_RECURSIVE_DIRECTORIES);
         let files = [];
 


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