Stop using deprecated GSettings:schema property

This commit is contained in:
Florian Müllner
2014-10-07 14:38:12 +02:00
parent ab37a8f92f
commit 60ea0fb172
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ const AltTabSettingsWidget = new GObject.Class({
this.row_spacing = 6;
this.orientation = Gtk.Orientation.VERTICAL;
this._settings = new Gio.Settings({ schema: 'org.gnome.shell.window-switcher' });
this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell.window-switcher' });
let presentLabel = '<b>' + _("Present windows as") + '</b>';
this.add(new Gtk.Label({ label: presentLabel, use_markup: true,
+1 -1
View File
@@ -663,7 +663,7 @@ const WorkspaceIndicator = new Lang.Class({
this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
this._updateMenu();
this._settings = new Gio.Settings({ schema: 'org.gnome.desktop.wm.preferences' });
this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.wm.preferences' });
this._settingsChangedId = this._settings.connect('changed::workspace-names', Lang.bind(this, this._updateMenu));
},
+1 -1
View File
@@ -50,7 +50,7 @@ const WorkspaceIndicator = new Lang.Class({
//styling
this.statusLabel.add_style_class_name('panel-workspace-indicator');
this._settings = new Gio.Settings({ schema: WORKSPACE_SCHEMA });
this._settings = new Gio.Settings({ schema_id: WORKSPACE_SCHEMA });
this._settingsChangedId = this._settings.connect('changed::' + WORKSPACE_KEY, Lang.bind(this, this._createWorkspacesSection));
},
+1 -1
View File
@@ -30,7 +30,7 @@ const WorkspaceNameModel = new GObject.Class({
this.parent(params);
this.set_column_types([GObject.TYPE_STRING]);
this._settings = new Gio.Settings({ schema: WORKSPACE_SCHEMA });
this._settings = new Gio.Settings({ schema_id: WORKSPACE_SCHEMA });
//this._settings.connect('changed::workspace-names', Lang.bind(this, this._reloadFromSettings));
this._reloadFromSettings();