diff --git a/src/preferences/BackgroundButton.js b/src/preferences/BackgroundButton.js index 368ddb3..7ab18b2 100644 --- a/src/preferences/BackgroundButton.js +++ b/src/preferences/BackgroundButton.js @@ -12,10 +12,10 @@ var BackgroundButton = GObject.registerClass({ Template: `file://${GLib.build_filenamev([Me.path, 'preferences', 'ui', 'BackgroundButton.ui'])}`, InternalChildren: ['filechooser'], Properties: { - path: GObject.ParamSpec.string( - 'path', - 'Path', - 'Path to the background file', + uri: GObject.ParamSpec.string( + 'uri', + 'URI', + 'URI to the background file', GObject.ParamFlags.READWRITE, null ), @@ -45,7 +45,7 @@ var BackgroundButton = GObject.registerClass({ onFileChooserResponse(fileChooser, responseId) { if (responseId !== Gtk.ResponseType.ACCEPT) return; - this.path = fileChooser.get_file().get_uri(); + this.uri = fileChooser.get_file().get_uri(); } onClicked(_button) { diff --git a/src/preferences/BackgroundsPage.js b/src/preferences/BackgroundsPage.js index 6eeb013..8a9b1c7 100644 --- a/src/preferences/BackgroundsPage.js +++ b/src/preferences/BackgroundsPage.js @@ -19,7 +19,7 @@ var BackgroundsPage = GObject.registerClass({ super(props); const settings = new Gio.Settings({ schema: 'org.gnome.desktop.background' }); - settings.bind('picture-uri', this._day_button, 'path', Gio.SettingsBindFlags.DEFAULT); - settings.bind('picture-uri-dark', this._night_button, 'path', Gio.SettingsBindFlags.DEFAULT); + settings.bind('picture-uri', this._day_button, 'uri', Gio.SettingsBindFlags.DEFAULT); + settings.bind('picture-uri-dark', this._night_button, 'uri', Gio.SettingsBindFlags.DEFAULT); } }); diff --git a/src/preferences/ui/BackgroundButton.ui b/src/preferences/ui/BackgroundButton.ui index dcb49c0..edbf4f0 100644 --- a/src/preferences/ui/BackgroundButton.ui +++ b/src/preferences/ui/BackgroundButton.ui @@ -14,7 +14,7 @@ SPDX-License-Identifier: GPL-3.0-or-later - BackgroundButton + BackgroundButton BackgroundButton BackgroundButton